lv_nanovg_math.h¶
Defines
-
NVG_MATH_PI¶
-
NVG_MATH_HALF_PI¶
-
NVG_MATH_TWO_PI¶
-
NVG_DEG_TO_RAD¶
-
NVG_RAD_TO_DEG¶
-
NVG_MATH_TANF(x)¶
-
NVG_MATH_SINF(x)¶
-
NVG_MATH_COSF(x)¶
-
NVG_MATH_ASINF(x)¶
-
NVG_MATH_ACOSF(x)¶
-
NVG_MATH_FABSF(x)¶
-
NVG_MATH_SQRTF(x)¶
-
NVG_MATH_RADIANS(deg)¶
-
NVG_MATH_DEGREES(rad)¶
Functions
-
static inline bool nvg_math_is_zero(float a)¶
Check if the floating point number is zero
- Parameters:
a – the number to check
- Returns:
true if the number is zero, false otherwise
-
static inline bool nvg_math_is_equal(float a, float b)¶
Check if two floating point numbers are equal
- Parameters:
a – the first number
b – the second number
- Returns:
true if the numbers are equal, false otherwise
-
static inline float nvg_math_inv_sqrtf(float number)¶
Calculate the inverse square root (1/sqrt(x))
- Parameters:
number – the input number
- Returns:
the inverse square root