Bambo-Borris
b2ab6d6ab3
Add extension methods to Vector3<T>
...
Includes relevant tests and updates TestUtilities to feature ApproxVec2 & ApproxVec3
2022-05-16 08:59:42 +02:00
Chris Thrasher
c0a6cf1f0c
Remove unnecessary lossy conversions in test utilities
...
Both ApproxVec and ApproxDeg accept a double then convert that to
a float just to then convert it back to a double. We can save an
extra lossy conversion by just accepting a float instead of a double
in the first place.
2022-05-04 09:03:04 +02:00
Jan Haller
28e935673c
Const-qualify local variables in Vector2 test, where possible
2022-02-28 16:18:00 +00:00
Jan Haller
2eef193c0e
Unit tests for Vector2 extensions
...
Also adds ApproxVec and ApproxDeg types for more readable comparison of approximate vectors/angles.
2022-02-28 16:18:00 +00:00
Chris Thrasher
3d01efb80a
Use operator<< for printing during test failure
2022-01-07 20:04:54 +01:00
Vittorio Romeo
29983aa8d4
Replace Catch with Doctest
2021-12-24 15:06:32 +01:00
Chris Thrasher
ade9843dd8
Collapse test/src directory
2021-12-24 11:56:58 +01:00