Namespaces | Macros | Functions | Variables
xsmath.h File Reference
#include "xstypesconfig.h"
#include "xstypedefs.h"
#include "pstdint.h"
#include <math.h>
#include <float.h>
#include "xsfloatmath.h"
Include dependency graph for xsmath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 XsMath
 Namespace for mathematical constants and operations.
 

Macros

#define WANTXSMATH2   0
 
#define XSMATHCONST   static const
 
#define XSMATHINLINE   static
 
#define XSMATHINLINE2   static
 

Functions

XSMATHINLINE XsReal XsMath_asinClamped (const XsReal x)
 Returns asin(x) for -1 < x < 1. More...
 
XSMATHINLINE XsReal XsMath_deg2rad (XsReal degrees)
 Convert degrees to radians. More...
 
XSMATHINLINE2 int64_t XsMath_doubleToInt64 (double d)
 Returns d integer converted from a double precision floating point value. More...
 
XSMATHINLINE2 int32_t XsMath_doubleToLong (double d)
 Returns d integer converted from a double precision floating point value. More...
 
XSMATHINLINE2 int64_t XsMath_floatToInt64 (float d)
 Returns d integer converted from a single precision floating point value. More...
 
XSMATHINLINE2 int32_t XsMath_floatToLong (float d)
 Returns d integer converted from a single precision floating point value. More...
 
XSMATHINLINE2 int XsMath_isFinite (XsReal x)
 Returns non-zero if x is finite. More...
 
XSMATHINLINE XsReal XsMath_pow2 (XsReal a)
 Returns a to the power of 2. More...
 
XSMATHINLINE XsReal XsMath_pow3 (XsReal a)
 Returns a to the power of 3. More...
 
XSMATHINLINE XsReal XsMath_pow5 (XsReal a)
 Returns a to the power of 5. More...
 
XSMATHINLINE XsReal XsMath_rad2deg (XsReal radians)
 Convert radians to degrees. More...
 

Variables

XSMATHCONST XsReal XsMath_deg2radValue = 0.017453292519943295769236907684886
 Value to convert degrees to radians by multiplication. More...
 
XSMATHCONST XsReal XsMath_denormalized = 1e-307
 Value that represents the subnormal number in floating point wizardry. More...
 
XSMATHCONST XsReal XsMath_e = 2.7182818284590452353602874713527
 The value e. More...
 
XSMATHCONST XsReal XsMath_epsilon = 2.2204460492503131e-016
 A value related to the precision of floating point arithmetic (2.2204460492503131e-016) More...
 
XSMATHCONST XsReal XsMath_four = 4.0
 4 More...
 
XSMATHCONST XsReal XsMath_halfPi = 1.5707963267948966192313216916397514420985846996875529104874
 pi/2 More...
 
XSMATHCONST XsReal XsMath_hugeValue = 1.0e+16
 A convincingly large number. More...
 
XSMATHCONST XsReal XsMath_infinity = DBL_MAX
 infinity value More...
 
XSMATHCONST XsReal XsMath_minusHalfPi = -1.5707963267948966192313216916397514420985846996875529104874
 -pi/2 More...
 
XSMATHCONST XsReal XsMath_minusOne = -1.0
 -1.0 More...
 
XSMATHCONST XsReal XsMath_minusPt5 = -0.5
 -0.5 More...
 
XSMATHCONST XsReal XsMath_minusTwo = -2.0
 -2 More...
 
XSMATHCONST XsReal XsMath_one = 1.0
 1.0 More...
 
XSMATHCONST XsReal XsMath_pi = 3.1415926535897932384626433832795028841971693993751058209749
 The value pi. More...
 
XSMATHCONST XsReal XsMath_pt25 = 0.25
 0.25 More...
 
XSMATHCONST XsReal XsMath_pt5 = 0.5
 0.5 More...
 
XSMATHCONST XsReal XsMath_rad2degValue = 57.295779513082320876798154814105
 Value to convert radians to degrees by multiplication. More...
 
XSMATHCONST XsReal XsMath_sqrt2 = 1.4142135623730950488016887242097
 sqrt(2) More...
 
XSMATHCONST XsReal XsMath_sqrtDenormalized = 3.1622776601683793319988935444327e-154
 Square root of XsMath_denormalized. More...
 
XSMATHCONST XsReal XsMath_sqrtEpsilon = 1.4901161193847656e-008
 Square root of XsMath_epsilon. More...
 
XSMATHCONST XsReal XsMath_sqrtHalf = 0.5 * 1.4142135623730950488016887242097
 sqrt(0.5) More...
 
XSMATHCONST XsReal XsMath_tinyValue = 1.0e-16
 A really small value. More...
 
XSMATHCONST XsReal XsMath_two = 2.0
 2 More...
 
XSMATHCONST XsReal XsMath_twoPi = 6.2831853071795864769252867665590057683943387987502116419498
 2*pi More...
 
XSMATHCONST XsReal XsMath_zero = 0.0
 0 More...
 

Macro Definition Documentation

◆ WANTXSMATH2

#define WANTXSMATH2   0

Definition at line 104 of file xsmath.h.

◆ XSMATHCONST

#define XSMATHCONST   static const

Definition at line 101 of file xsmath.h.

◆ XSMATHINLINE

#define XSMATHINLINE   static

Definition at line 102 of file xsmath.h.

◆ XSMATHINLINE2

#define XSMATHINLINE2   static

Definition at line 103 of file xsmath.h.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21