ifw-odp  2.0.0-alpha
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
clipm_math.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  * E.S.O. - VLT project
4  *
5  * "@(#) $Id: clipm_math.h 262682 2014-12-08 13:37:15Z cgarcia $"
6  *
7  * Functions for basic mathematical operations
8  *
9  * who when what
10  * -------- ---------- ----------------------------------------------
11  * hlorch 2006-05-11 created
12  */
13 
14 #ifndef CLIPM_MATH_H
15 #define CLIPM_MATH_H
16 
17 /*-----------------------------------------------------------------------------
18  Includes
19  -----------------------------------------------------------------------------*/
20 
21 #include <math.h>
22 /* ensure to have CPL mathematical constants */
24 
25 /*-----------------------------------------------------------------------------
26  Declaration Block
27  -----------------------------------------------------------------------------*/
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /*-----------------------------------------------------------------------------
34  Prototypes
35  -----------------------------------------------------------------------------*/
36 
37 double clipm_math_arctan_0to2pi( double x,
38  double y);
39 int clipm_math_round_d2i( double in);
40 cpl_size clipm_math_round_d2cplsize( double in);
41 
42 /*----------------------------------------------------------------------------*/
43 
44 #ifdef __cplusplus
45 } /* extern "C" */
46 #endif
47 
48 #endif /* CLIPM_MATH_H */
cpl_size clipm_math_round_d2cplsize(double in)
Round a double value to the nearest cpl_size.
Definition: clipm_math.c:86
double clipm_math_arctan_0to2pi(double x, double y)
Compute the arcus tangens for the whole angle range.
Definition: clipm_math.c:48
int clipm_math_round_d2i(double in)
Round a double value to the nearest integer.
Definition: clipm_math.c:73