mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 17:13:34 +08:00
Add functions for computation of the distance and bearing to the nearest point of a line segment or arc segment.
This commit is contained in:
@@ -544,6 +544,8 @@ extern int matherr _PARAMS((struct exception *e));
|
||||
#define M_1_PI 0.31830988618379067154
|
||||
#define M_2_PI 0.63661977236758134308
|
||||
#define M_2_SQRTPI 1.12837916709551257390
|
||||
#define M_DEG_TO_RAD 0.01745329251994
|
||||
#define M_RAD_TO_DEG 57.2957795130823
|
||||
#define M_SQRT2 1.41421356237309504880
|
||||
#define M_SQRT1_2 0.70710678118654752440
|
||||
#define M_LN2LO 1.9082149292705877000E-10
|
||||
@@ -568,6 +570,8 @@ extern int matherr _PARAMS((struct exception *e));
|
||||
#define M_1_PI_F 0.31830988618379067154f
|
||||
#define M_2_PI_F 0.63661977236758134308f
|
||||
#define M_2_SQRTPI_F 1.12837916709551257390f
|
||||
#define M_DEG_TO_RAD_F 0.01745329251994f
|
||||
#define M_RAD_TO_DEG_F 57.2957795130823f
|
||||
#define M_SQRT2_F 1.41421356237309504880f
|
||||
#define M_SQRT1_2_F 0.70710678118654752440f
|
||||
#define M_LN2LO_F 1.9082149292705877000E-10f
|
||||
|
||||
Reference in New Issue
Block a user