ifw-odp
3.0.0
clipm
include
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 */
23
#include "
clipm_compatibility_replacements.h
"
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 */
clipm_compatibility_replacements.h
clipm_math_round_d2cplsize
cpl_size clipm_math_round_d2cplsize(double in)
Round a double value to the nearest cpl_size.
Definition:
clipm_math.c:86
clipm_math_round_d2i
int clipm_math_round_d2i(double in)
Round a double value to the nearest integer.
Definition:
clipm_math.c:73
clipm_math_arctan_0to2pi
double clipm_math_arctan_0to2pi(double x, double y)
Compute the arcus tangens for the whole angle range.
Definition:
clipm_math.c:48
Generated by
1.8.20