Andrew Tridgell
|
3e853344f3
|
AP_Math: avoid build warnings
|
5 years ago |
Peter Barker
|
58a8e54d83
|
AP_Math: create and use INTERNAL_ERROR macro so we get line numbers
|
5 years ago |
Mark Whitehorn
|
7d3d664ddf
|
AP_Math: generate internalError on call to Vector3<T>::rotate and Quaternion::from_rotation with bad rotation value
|
5 years ago |
Randy Mackay
|
9fd39f3768
|
AP_Math: alternative quaternion rotation test
|
5 years ago |
Randy Mackay
|
26e4dd6fef
|
AP_Math: correct quaternion::from_rotation for pitch-180
|
5 years ago |
Randy Mackay
|
c18fce6714
|
AP_Math: add quaternion rotation test
|
5 years ago |
Randy Mackay
|
61a06bbb04
|
AP_Math: add quaternion rotate, from_rotation and invert
|
5 years ago |
Randy Mackay
|
338548c5eb
|
AP_Math: move HALF_SQRT_2 def to rotation.h
This allows it to be used by the Quaternion class
|
5 years ago |
Samuel Tabor
|
45cb663d73
|
AP_Math: Add template for Vector2f::projected.
|
5 years ago |
Randy Mackay
|
9c8a5a7392
|
AP_Math: add comments above some quaternion methods
thanks to jchallinger
|
5 years ago |
Randy Mackay
|
7a48a3f354
|
AP_Math: minor comment fix
|
5 years ago |
Patrick José Pereira
|
1635054c4f
|
AP_Math: Add missing constexpr
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
|
5 years ago |
Andrew Tridgell
|
f908e56154
|
AP_Math: define ROTATION_MAX_AUTO_ROTATION
we don't want to use ROTATION_PITCH_7 in our auto rotation mix, as it
is too close to level
|
5 years ago |
Randy Mackay
|
f87ae7d445
|
AP_Math: add vector2f::offset_bearing
|
5 years ago |
Andrew Tridgell
|
ff2cfbaafb
|
AP_Math: added smaller footprint crc32
|
5 years ago |
Siddharth Purohit
|
fb48d8ee1b
|
AP_Math: add method for generating hash
|
5 years ago |
Andrew Tridgell
|
66b4e92444
|
AP_Math: make fill_nanf() use a signalling NaN
we want use of these values to trigger a FPE
|
5 years ago |
Peter Barker
|
6fe09b6120
|
AP_Math: move is_valid_octal into adsb
This doesn't ensure the value is octal digits - there's more magic in
it.
|
5 years ago |
Peter Barker
|
189ef5f1e7
|
AP_Math: define != for Vector2<int>
|
5 years ago |
Andrew Tridgell
|
13a2367278
|
AP_Math: change optimisation from -O3 to -O2
|
5 years ago |
Peter Barker
|
975804fa35
|
AP_Math: remove unit_mod concept from wrap functions
devcall decided it would be clearer to have non-shared implementation
for the _cd variants
|
5 years ago |
Andrew Tridgell
|
9b746b89db
|
AP_Math: added fill_nanf()
used in SITL to invalidate memory
|
5 years ago |
Peter Barker
|
5692f3d79e
|
AP_Math: stop returning float for integer wrap_180/wrap_360 etc
|
5 years ago |
Peter Barker
|
84d999142f
|
AP_Math: add more tests for wrap functions
|
5 years ago |
Randy Mackay
|
c7ca9c04f8
|
AP_Math: add comment to vector2f::point_on_segment
|
6 years ago |
Peter Barker
|
4c434c2df9
|
AP_Math: add WARN_IF_UNUSED to bool methods
|
6 years ago |
Andrew Tridgell
|
2480a62e55
|
AP_Math: added speed/distance conversions
|
6 years ago |
murata
|
c5a471e778
|
AP_Math: Common modbus crc method
|
6 years ago |
Randy Mackay
|
614b0f6dc8
|
AP_Math: Polygon_intersects handles unclosed polygons
|
6 years ago |
Peter Barker
|
da5d5c9203
|
AP_Math: add tests for Vector2
|
6 years ago |
Randy Mackay
|
c2bcc0d5f0
|
AP_Math: define Vector2f::perpendicular
|
6 years ago |
Randy Mackay
|
071e340827
|
AP_Math: Polygon_closest_distance_line returns neg numbers
value is negative distance from intersection to p2
|
6 years ago |
Andrew Tridgell
|
6eb816fd3b
|
AP_Math: add Polygon_closest_distance_line
Also add optimisations
|
6 years ago |
Andrew Tridgell
|
a5fd7ac5ca
|
AP_Math: add vector2f::closest_distance_between_line_and_point_squared
also add vector2f::closest_distance_between_line_and_point and vector2f::closest_distance_between_lines_squared
|
6 years ago |
Andrew Tridgell
|
2457bf71d4
|
AP_Math: add simplified vector2f::closest_point
this simpler version assumes the line segment originates at the origin
|
6 years ago |
Andrew Tridgell
|
c8e49259a0
|
AP_Math: add vector2f::closest_distance_between_radian_and_point_squared
|
6 years ago |
Andrew Tridgell
|
dbf337e1b3
|
AP_Math: move closest_point to cpp
|
6 years ago |
Andrew Tridgell
|
bfc28dfde9
|
AP_Math: move normalize, reflect, project and perpendicular to cpp
|
6 years ago |
Andrew Tridgell
|
01e541b7d1
|
AP_Math: minor formatting changes to length method
|
6 years ago |
Andrew Tridgell
|
4c4de1f021
|
AP_Math: vector2f::length_squared always returns float
|
6 years ago |
Andrew Tridgell
|
46617e6c72
|
AP_Math: remove unused include from Vector2
|
6 years ago |
Andrew Tridgell
|
69781cda42
|
AP_Math: add Vector2::angle
|
6 years ago |
Peter Hall
|
ea4ecebfc4
|
AP_Math: add speed unit converstion defs
|
6 years ago |
Peter Barker
|
e4de5a17d1
|
AP_Math: add pitch-7 to rotation tests
|
6 years ago |
Andrew Tridgell
|
e2eda63d2c
|
AP_Math: added new rotation for PITCH_7
|
6 years ago |
Peter Barker
|
977fe09276
|
AP_Math: add a more complex polygon for Polygon_outside tests
|
6 years ago |
Peter Barker
|
d3971c18fa
|
AP_Math: more tests for closed-vs-open polygons
|
6 years ago |
Peter Barker
|
d74e6db12e
|
AP_Math: add more tests for Polygon_outside
|
6 years ago |
Peter Barker
|
36fe9a18a0
|
AP_Math: make Polygon_outside cope with being passed unclosed polygons
|
6 years ago |
Peter Barker
|
64aafb2af2
|
AP_Math: add Polygon_outside tests for long template instantiation
|
6 years ago |