137 Commits

Author SHA1 Message Date
90e89b2ecd Squashed 'LinearAlgebra/' changes from bfa1123..72f1472
72f1472 Fix missing <chrono> include
54634f0 Backporting some style changes from Python
fea15c3 removed namespace Passer
753de2d Fixes
9674f68 Disabled test failing on MacOS
5b89234 Made it work on MacOS
d0ba29e Updated LinearAlgebra
ebfb4fb Merge commit '0b63a044eb84175cc922f3f1fe0ce039d101bf7b'
0b63a04 Updated documentation, cleanup
a0082bd Add direction documentation
770ce32 Merge commit '2b5f5cd175b20fa01e04b696dfe0cfbe2c4ad9da'
2b5f5cd Removed shorthand Deg/Rad aliases... (see below)
d212db2 Trying to fix specialization before instantiation error
e445e5b Trying to fix specialization before instantiation error
f47e504 Trying to fix specialization before instantiation error
b877d4d Trying to fix specialization before instantiation error
06e8623 Trying to fix specialization before instantiation error
e97aee9 Trying to fix specialization before instantiation error
0e00e5d Merge branch 'main' of http://gitlab.passervr.com/passer/cpp/linear-algebra
52de55d Trying to fix specialization before instantiation error
47ba024 Trying to fix specialization before instantiation error
2402030 Trying to fix specialization before instantiation error
4e3f253 Fixed gitignore
06c70e2 Merge branch 'Experimental'
6f30334 Updated PolarOf, removed default Polar type
94a3105 Cleanup
89a5711 Fixed typo in documentation
64b7f11 Removed default Angle type
58beb36 Completed AngleOf documentation
5f58a2c Updated documentation
97d937e Fixed (copilot) unit tests
585a3b0 Removed default Spherical type
d3226fd Added copilot test documentation
a7aa679 Added a performance test
2c57c3f Fixed direction for spherical
28ee225 Normalize Spherical at creation
800eb75 improved rounding of discrete angles
536d6ce Add Binary support
18756ba Correct axis on quaternion from swingtwist
06e42c5 Normalized swing twist
edbb4b1 Removes Angle::deg90/180 because of issues
0a07b23 SwingTwist == and Angle
9406b57 SwingTwist::AngleAxis using Direction
06da9e5 Removed AngleAxis, Sperhical will be used instead
2e61e1b Fix unit test
54d0318 Extended unit tests (plus fixes)
8286c1c Minor improvements
95a6fb3 Improved Angle quality
9eca318 Fixed inverse
0ebfce4 Spherical direction
136e44e Fixed unit tests
fb5cee8 Proper angle implementation (unit tests still fail)
92d5ef0 Normalizing directions
1ea65d5 Made toQuestion const
f1c70c7 Fix unit tests
2ad6a5a Fix include
11259a9 Extend functionality
3363388 Extended AngleAxis & Direction
09e25a8 Add Asin and Atan
a646e93 Add ACos
407e771 Add WithDistance
69bad8f Added degrees, radians, cos, sin, and tan functions
5c3dfa6 Adde degrees/readians and poc ACos
05c61a3 Add distance between
6a1d043 Added Angle comparison
6b3bcfc Another anglebetween fix
b5a6330 Fix anglebetween
b975aed Added angle and rotate functions
f483439 Moved Polar/Spherical to template class completely
e0ef43a Merge branch 'Experimental' of http://gitlab.passervr.com/passer/cpp/linear-algebra into Experimental
b460bec Added scaling to SphericalOf<T>
e10e010 Added Direction to library sources
dedaa31 Fix unit tests
1da93ca Fix ToVector3
9c3503f Added SphericalOf
353cb1b Add conversion from Quaternion
cf86ba8 Cleanup template classes
ea6894e Fix generic template functions
1ce7234 Bug fixes
38ebb34 Added Direction to replace Axis
c72bba4 Change Vector3::Angle return type to AngleOf<float>
18cf653 Added scaling support
51772a1 Added add/subtract for discrete angles
49c6740 Make Angle -> float conversion explicit
608c45c Fix precision error
4591aef Added Spherical16
48828e2 Fix int/float issues
86b7c21 Added Degrees inline function
a4b0491 Fix unit tests
b81b77b Extend AngleOf support
c70c079 Add spherical subtract
2bad384 Added spherical addition
a25a8be Fixed namespace issues
f8009a7 Updated namespace
91c7b20 Fix gitlab test runner
78468e3 Renamed VectorAlgebra project to LinearAlgebra
47a6368 Fix Vector3
ee62cba XYZ deprecation
62d7439 Extend ulitity functions
95713c8 Cleanup, added utility functions
f7d9d97 Cleanup
66e47d7 Cleanup Vector2 and Polar
e922a01 fix == operator
5693097 Initial subtractop test
c411b43 Textual improvement
0c54276 equality support
b1e34b6 Improved unit tests
6ddb074 Improved unit tests
5489b3c Fix test
3d971c1 Improve namespace
791bd78 namespace improvement
9bea94f Use Angle type for Polar
8a2ce21 Swapped polar constructor param order
e5f8d73 namespace fix
8e7a8c6 Fix namespaces
64ca768 normalize toAngleAxis result
4385bef Add angle-axis
4b07328 Add conversion from Vector3
fe12c99 Fix Spherical reference
c274c3e Add conversion from Spherical
66ff721 Fixed wrong conversion to short
264bcbc Added 32 bit angle
f190dd7 Merge branch 'DiscreteAngle' into Experimental
ae55a24 Further  vector3 conversion fixes
ec0cc47 Fix spherical to vector
89b5da8 Fix ambiguity
e62fa96 Fix specialization again
430344a Fix specialization error
3e5ede0 Removed old file
e62bacc First Discrete Angle functions
87d2c11 Set strict warnings
5141766 Add spherical.toVector3 test (and fixes)
8e3b9e2 Fix Polar test
7b85556 Addedfirst Polar test
395f82d Fix Spherical Unit test
0cbef79 Add first Spherical Unit test
dc601a1 Removed Vector2.tofactor
159bdae Added spherical.tovector (but is is buggy)
273ebae Fixes
0468031 Bug fix
3714507 Implemented templated angles
69e7ee1 Added DiscreteAgle
2cbf259 Make negation virtual override
2b50bab Add negation for DiscreteAngle
de3a647 Updated negation
254bb27 Added negation
bd04285 Make superclass accessable
2bb0009 Initial implementation

git-subtree-dir: LinearAlgebra
git-subtree-split: 72f1472f2e1d2c9a1fe002460e47606b9aeed548
2025-05-26 14:04:37 +02:00
Pascal Serrarens
bfa1123994 Add ClampMagnitude 2024-04-17 15:20:12 +02:00
Pascal Serrarens
d01c5d9de5 Add convertsion from Vector2 2024-04-17 15:19:49 +02:00
Pascal Serrarens
c01640429c Add MatrixOf::CopyFrom 2024-02-27 14:41:31 +01:00
Pascal Serrarens
5f7133f449 Added parameter const attributes 2024-02-26 13:20:19 +01:00
Pascal Serrarens
a152d07948 Added Mat/Vec multiplication test 2024-02-26 12:01:35 +01:00
Pascal Serrarens
c2e0a8afb2 Use null matrix for invalid transport result 2024-02-22 14:50:26 +01:00
Pascal Serrarens
a899a9dc44 Added tests and code improvement 2024-02-22 14:39:06 +01:00
Pascal Serrarens
af892bc943 Extended matrix functions 2024-02-22 11:25:39 +01:00
Pascal Serrarens
f38e01d80a Added expiremental operator* 2024-02-21 12:55:37 +01:00
Pascal Serrarens
7b7df5d93d update gitignore 2024-02-14 14:03:51 +01:00
Pascal Serrarens
644399b574 updated template 2024-02-14 10:57:31 +01:00
Pascal Serrarens
59f8d9982f Added access functions 2024-02-14 10:54:26 +01:00
Pascal Serrarens
26dd62b379 Added and fixed matrix tests 2024-02-14 10:37:20 +01:00
Pascal Serrarens
f2753f14bf Updated test 2024-02-12 12:21:23 +01:00
Pascal Serrarens
c74c7b7c83 Added matrix functions 2024-02-12 11:56:51 +01:00
Pascal Serrarens
596e85d3a4 Added sperical.cpp 2024-01-31 11:16:33 +01:00
Pascal Serrarens
78106912a9 renames spherical magnitude to distance 2024-01-31 10:36:40 +01:00
Pascal Serrarens
276d293c9b Added spherical <-> polar convertions 2024-01-31 09:53:39 +01:00
Pascal Serrarens
7ece8abd02 Fixed struct reference 2024-01-23 11:05:37 +01:00
Pascal Serrarens
fd252d4b45 Efficiency improvements 2024-01-23 10:57:39 +01:00
Pascal Serrarens
dc9d4ee42e Renamed pi 2024-01-15 09:33:19 +01:00
Pascal Serrarens
78ed576e16 Added PI 2024-01-09 12:28:25 +01:00
Pascal Serrarens
fe176f6a73 Fix issues 2024-01-08 15:08:01 +01:00
Pascal Serrarens
0a4f2751fe Generic Angles 2024-01-08 15:02:24 +01:00
Pascal Serrarens
96bcc4a405 Added permature Spherical type 2024-01-04 18:02:19 +01:00
Pascal Serrarens
5a03d296e5 Fixed tests 2024-01-03 12:03:56 +01:00
Pascal Serrarens
37d45cdda5 Moved all source/includes to root 2024-01-03 11:49:50 +01:00
Pascal Serrarens
5b2d515ccc Added Polar to the source list 2023-12-31 16:24:47 +01:00
Pascal Serrarens
f196ebadea Update .gitlab-ci.yml file 2023-12-30 12:56:04 +00:00
Pascal Serrarens
dc58f0a473 Update .gitlab-ci.yml file 2023-12-30 12:01:36 +00:00
Pascal Serrarens
91027b2e41 Add projecton on horizontal plane 2023-12-29 12:27:44 +01:00
Pascal Serrarens
aaf335d218 Normalize the result of the rotation 2023-12-29 12:27:22 +01:00
006ea046e4 Added AVR support 2023-12-04 10:53:32 +01:00
Pascal Serrarens
493a3f7489 Fix another float/double mistake 2023-11-14 17:10:19 +01:00
Pascal Serrarens
3c67a2e16a Fixed missing float number types 2023-11-13 16:28:08 +00:00
Pascal Serrarens
bebd097db3 Merge branch '0.2-beta' into 'main'
0.2

See merge request passer/cpp/vectoralgebra!1
2023-06-22 08:26:55 +00:00
Pascal Serrarens
e6f45b1b84 Fix missing gtest link library 2023-05-01 10:24:57 +02:00
Pascal Serrarens
52a8df8c69 Fix platform dependent cmake 2023-05-01 10:17:52 +02:00
Pascal Serrarens
986d3fdb13 ESP-IDF component support 2023-04-21 17:26:28 +02:00
Pascal Serrarens
f75ecf1112 Normalize polar angle at creation 2023-03-31 11:49:56 +02:00
Pascal Serrarens
113f5a14f3 Fix zero vector addition 2023-03-30 17:16:43 +02:00
Pascal Serrarens
99e4515358 Fix: adding two vectors with nearly the same angle 2023-03-24 15:42:56 +01:00
Pascal Serrarens
295a2b3902 Added Polar::Rotate 2023-01-27 16:53:42 +01:00
Pascal Serrarens
882dfdfcdb Removed erronous arduino include 2023-01-27 11:48:04 +01:00
Pascal Serrarens
755fc1961d Fix nan issues in consine rule 2023-01-27 11:45:02 +01:00
Pascal Serrarens
4448ee150d Fixed Vector2::Rotation 2023-01-25 15:54:41 +01:00
Pascal Serrarens
71bbef7d13 Fixed unsigned float 2023-01-25 15:48:05 +01:00
Pascal Serrarens
6b75707a2e Added cosine/sine rules 2023-01-25 15:46:11 +01:00
Pascal Serrarens
1707751bf3 Fix angle when newDistance < 0 2023-01-25 14:42:13 +00:00