![]() |
ISSDK
1.8
IoT Sensing Software Development Kit
|
Math approximations file. More...
Go to the source code of this file.
Functions | |
float | fasin_deg (float x) |
float | facos_deg (float x) |
float | fatan_deg (float x) |
float | fatan2_deg (float y, float x) |
float | fatan_15deg (float x) |
Math approximations file.
Significant efficiencies were found by creating a set of trig functions which trade off precision for improved power/CPU performance. Full details are included in Application Note AN5015: Trigonometry Approximations
Definition in file approximations.h.
float facos_deg | ( | float | x | ) |
Definition at line 43 of file approximations.c.
References fatan_deg().
Referenced by fAndroidAnglesDegFromRotationMatrix(), fNEDAnglesDegFromRotationMatrix(), and fWin8AnglesDegFromRotationMatrix().
float fasin_deg | ( | float | x | ) |
Definition at line 28 of file approximations.c.
References fatan_deg().
Referenced by fAndroidAnglesDegFromRotationMatrix(), feCompassAndroid(), feCompassNED(), feCompassWin8(), fNEDAnglesDegFromRotationMatrix(), and fWin8AnglesDegFromRotationMatrix().
float fatan2_deg | ( | float | y, |
float | x | ||
) |
Definition at line 109 of file approximations.c.
References fatan_deg().
Referenced by fAndroidAnglesDegFromRotationMatrix(), fNEDAnglesDegFromRotationMatrix(), and fWin8AnglesDegFromRotationMatrix().
float fatan_15deg | ( | float | x | ) |
Definition at line 139 of file approximations.c.
References PADE_A, PADE_B, and PADE_C.
Referenced by fatan_deg().
float fatan_deg | ( | float | x | ) |
Definition at line 59 of file approximations.c.
References fatan_15deg(), TAN15DEG, and TAN30DEG.
Referenced by facos_deg(), fasin_deg(), fatan2_deg(), and fWin8AnglesDegFromRotationMatrix().