summaryrefslogtreecommitdiff
path: root/lib/maths.h
Commit message (Collapse)AuthorAge
* Add rotate_yp taking two separate parametersDan Goodliffe2024-10-05
|
* Add new mathematical constants to libDan Goodliffe2024-09-19
|
* Remove conflicting glm::vec operatorsDan Goodliffe2024-06-01
| | | | | | % and %= already exist and abusing them for simplifying perspective multiplication was always a bad idea. Here they just become named functions.
* Extract vector_normal helper into libDan Goodliffe2024-03-23
|
* Add helper constructors to ArcDan Goodliffe2024-03-21
| | | | | | * Two angles, wraps logic ensuring b after a * Two vector directions * Centre and two endpoints, in at least 2 dimensions, uses .xy()
* Make arc_length a member functionDan Goodliffe2024-03-21
|
* vector_yaw only needs 2 dimensionsDan Goodliffe2024-03-21
|
* Fix non-64bit upgrade wrapper for crossProductDan Goodliffe2024-03-09
|
* Simplify vector addition/subtraction with differnt typesDan Goodliffe2024-02-24
| | | | | Automatically applies correct rounding with float to int operations, adjusts test expectations accordingly.
* Simplify find_arcs_radiusDan Goodliffe2024-01-07
| | | | | Removes the second half of the problem that had been previously zero'd when adjusting to relative positions
* Global positions in network dataDan Goodliffe2024-01-07
|
* Unified crossProductDan Goodliffe2024-01-07
|
* Remove more use of legacy typesDan Goodliffe2024-01-01
|
* Templatise functions in maths.h using PositionNDDan Goodliffe2023-12-29
|
* Remove misleading power operator^ on vec2/3Dan Goodliffe2023-12-29
|
* Remove weird operator! on vec2/3Dan Goodliffe2023-12-29
|
* Add crossInt - cross product for integer vectorsDan Goodliffe2023-12-02
|
* WIP typedefing all the things - headersDan Goodliffe2023-11-07
|
* Inplace operator%= for vec3/mat4 mutationDan Goodliffe2023-03-10
|
* Add helper operator to perform vec3*mat4 and perspective divideDan Goodliffe2023-02-01
|
* Add helper to apply perspective divisionDan Goodliffe2022-12-28
| | | | Returns vec3 by default, but dimensions can be specified
* Helper for midpoint of pairDan Goodliffe2022-12-18
|
* Rename rdiv to ratio and add a vec2 overrideDan Goodliffe2022-11-18
|
* Replace include guard macros with pragma onceDan Goodliffe2022-01-02
|
* Add glm::vec concatenation operator||Dan Goodliffe2021-12-31
|
* Initial implementation for being able to click in the main window to select ↵Dan Goodliffe2021-12-28
| | | | something
* Fix up lots of static analyzer warningsDan Goodliffe2021-11-27
|
* Enable all Jason Turner recommended warningsDan Goodliffe2021-11-26
|
* Swap y,z axisDan Goodliffe2021-11-16
| | | | This was a pain... but all the coords make much more sense now and a lot of mystery negation has disappeared.
* Fix warnings produced by new clang-tidyDan Goodliffe2021-05-02
|
* Speed conversions and literalsDan Goodliffe2021-03-07
|
* Template rotations and add one for 2D rotation matrixDan Goodliffe2021-03-05
|
* Simplify a lot of code with sincosfDan Goodliffe2021-03-03
|
* Our own matrix rotationsDan Goodliffe2021-03-03
| | | | Simpler and faster than glm's as we don't need arbitrary axes.
* Global definition of quarter_piDan Goodliffe2021-02-28
|
* Move utility to libDan Goodliffe2021-02-28