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
da5d5c9203
AP_Math: add tests for Vector2
6 years ago
Randy Mackay
c2bcc0d5f0
AP_Math: define Vector2f::perpendicular
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
69781cda42
AP_Math: add Vector2::angle
6 years ago
Pierre Kancir
f1270b4b22
AP_Math: const correctness
6 years ago
Michael du Breuil
48610ea0a0
AP_Math: Remove an unneeded safe_sqrtf, leverage is_zero
6 years ago
Andrew Tridgell
c3cf8f5435
AP_Math: fixed a bug in segment_intersection()
...
we could get an intercept point beyond the end of the segment
7 years ago
Randy Mackay
c28cfcdc27
AP_Math: add Vector2f::circle_segment_intersection
7 years ago
Randy Mackay
a655c36159
AP_Math: add Vector2f::segment_intersection
7 years ago
Andrew Tridgell
f5b24a3838
AP_Math: fixed build of Sub with ChibiOS
7 years ago
Michael du Breuil
c5c94949bf
AP_Math: Extend vector2::angle(vector2) to distinguish parallel and antiparallel vectors
...
There are a number of use cases where distingusihing antiparallel from parallel vectors is important
8 years ago
Pierre Kancir
556993d7f0
AP_Math: Vector2 add == operator for int
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
9 years ago
Andrew Tridgell
c9ec8b3f67
AP_Math: added O3 optimisation to core math libraries
...
this costs some flash space but speeds things up considerably
9 years ago
Andrew Tridgell
0b897e04bb
AP_Math: revert AP_Math class change
10 years ago
Tom Pittenger
ac4e7b2b03
AP_Math: compiler warnings: apply is_equal(float)
10 years ago
Andrew Tridgell
728dbf24db
AP_Math: fixed vector inequality test
...
many thanks to cat888
fixes issue #2039
10 years ago
Andrew Tridgell
7e5a491f14
AP_Math: prevent a floating point exception
11 years ago
Andrew Tridgell
737f0305ef
AP_Math: implement vector2 cross product
...
useful in DCM for faster yaw correction
12 years ago
Andrew Tridgell
43c3c60de2
AP_Math: moved a lot of vector templates to cpp from .h
...
this reduces the code size quite a lot on AVR
12 years ago
Andrew Tridgell
a072afa223
AP_Math: expand some macros into functions
...
this saves some flash
12 years ago
uncrustify
9ccb38260d
uncrustify libraries/AP_Math/polygon.h
13 years ago
Andrew Tridgell
42522baf9f
geofence: store fence points as int32_t
...
this keeps maximum precision in fence boundaries
13 years ago
Andrew Tridgell
9b6bab8904
AP_Math: better polygon algorithm
...
this one seems to do better with single precision floating point
13 years ago
Andrew Tridgell
85e295332f
AP_Math: added Polygon_complete() function
...
used to veryify user supplied boundaries
13 years ago
Andrew Tridgell
117a98f9a2
AP_Math: added a Polygon_outside() function
...
this tests if a point is outside of a polygon. This will be used as
part of our geo-fencing support, and also for a new 'fenced mode'
13 years ago
Wenyao Xie
2432ae130d
Fixed baro.
13 years ago
Amilcar Lucas
69de071281
Spellcheck apo library
14 years ago
James Goppert
d887a28b91
Added ArduBoat/ ArduRover/ and APO library.
14 years ago
James Goppert
71fbdf721a
Added APO branch.
14 years ago
james.goppert
01dea496c8
Removed APO lib.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1957 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
aa598b575a
APO merge.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1935 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago