This module provides functions for basic mathematical operations, and definitions of mathematical constants. These definitions are made for the case that they are not available in <math.h>.
- Synopsis:
-
double clipm_math_arctan_0to2pi |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Compute the arcus tangens for the whole angle range.
- Parameters
-
x | Adjacent leg |
y | Opposite leg |
- Returns
- The angle in the range
cpl_size clipm_math_round_d2cplsize |
( |
double |
in | ) |
|
Round a double value to the nearest cpl_size.
- Parameters
-
- Returns
- The rounded value
int clipm_math_round_d2i |
( |
double |
in | ) |
|
Round a double value to the nearest integer.
- Parameters
-
- Returns
- The rounded value
This function is intended to replace the non-ANSI-C function rint().