ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Basic Functions and Constants

Functions

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

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:
#include "clipm_math.h"
*

Function Documentation

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]$
cpl_size clipm_math_round_d2cplsize ( double  in)

Round a double value to the nearest cpl_size.

Parameters
inInput value
Returns
The rounded value
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().