ifw-odp 5.0.0
Loading...
Searching...
No Matches
Functions
Basic Functions and Constants

Functions

double clipm_math_arctan_0to2pi (double x, double y)
 Compute the arcus tangens for the whole angle range.
 
int clipm_math_round_d2i (double in)
 Round a double value to the nearest integer.
 
cpl_size clipm_math_round_d2cplsize (double in)
 Round a double value to the nearest cpl_size.
 

Detailed Description

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:

Function Documentation

◆ clipm_math_arctan_0to2pi()

double clipm_math_arctan_0to2pi ( double x,
double y )

Compute the arcus tangens for the whole angle range.

Parameters
xAdjacent leg
yOpposite leg
Returns
The angle in the range $[0\ldots 2\pi]$

◆ clipm_math_round_d2cplsize()

cpl_size clipm_math_round_d2cplsize ( double in)

Round a double value to the nearest cpl_size.

Parameters
inInput value
Returns
The rounded value

◆ clipm_math_round_d2i()

int clipm_math_round_d2i ( double in)

Round a double value to the nearest integer.

Parameters
inInput value
Returns
The rounded value

This function is intended to replace the non-ANSI-C function rint().