1 #ifndef _VN_MATH_CONVERSIONS_H_
2 #define _VN_MATH_CONVERSIONS_H_
19 float rad2deg(
float angleInRads);
25 double rad2deg(
double angleInRads);
34 for (
size_t i = 0; i < dim; i++)
35 anglesInRads[i] =
rad2deg(anglesInRads[i]);
44 float vn_proglib_DLLEXPORT
deg2rad(
float angleInDegs);
50 double vn_proglib_DLLEXPORT
deg2rad(
double angleInDegs);
61 for (
size_t i = 0; i < dim; i++)
62 anglesInDegs[i] =
deg2rad(anglesInDegs[i]);
152 vec4f yprInDegs2Quat(vec3f yprInDegs);
159 vec4f yprInRads2Quat(vec3f yprInRads);
165 mat3f yprInDegs2Dcm(vec3f yprInDegs);
171 mat3f yprInRads2Dcm(vec3f yprInRads);
178 vec3f quat2YprInDegs(vec4f quat);
185 vec3f quat2YprInRads(vec4f quat);
192 mat3f quat2dcm(vec4f quat);
198 vec3f dcm2YprInDegs(mat3f dcm);
204 vec3f dcm2YprInRads(mat3f dcm);
211 vec4f dcm2quat(mat3f dcm);
219 float vn_proglib_DLLEXPORT course_over_ground(
float velNedX,
float velNedY);
226 float vn_proglib_DLLEXPORT course_over_ground(vec3f velNed);
234 float vn_proglib_DLLEXPORT speed_over_ground(
float velNedX,
float velNedY);
241 float vn_proglib_DLLEXPORT speed_over_ground(vec3f velNed);
247 vec3f vn_proglib_DLLEXPORT quat2omegaPhiKappaInRads(vec4f quat);
253 vec3f vn_proglib_DLLEXPORT dcm2omegaPhiKappaInRads(mat3f dcm);
259 vec3f vn_proglib_DLLEXPORT yprInDegs2omegaPhiKappaInRads(vec3f yprDegs);
265 vec3f vn_proglib_DLLEXPORT yprInRads2omegaPhiKappaInRads(vec3f yprRads);
vec< dim, float > deg2rad(vec< dim > anglesInDegs)
Convers a vector of angles in degrees to radians.
Definition: conversions.h:59
double fahren2kelvin(double tempInFahren)
Converts a temperature in Fahrenheit to Kelvin.
Template for a Euclidean vector.
Definition: vector.h:22
double kelvin2celsius(double tempInKelvin)
Converts a temperature in Kelvin to Celsius.
double celsius2fahren(double tempInCelsius)
Converts a temperature in Celsius to Fahrenheit.
double fahren2celsius(double tempInFahren)
Converts a temperature in Fahrenheit to Celsius.
vec< dim, float > rad2deg(vec< dim > anglesInRads)
Convers a vector of angles in radians to degrees.
Definition: conversions.h:32
double kelvin2fahren(double tempInKelvin)
Converts a temperature in Kelvin to Fahrenheit.
double celsius2kelvin(double tempInCelsius)
Converts a temperature in Celsius to Kelvin.