Main Page
Classes
Files
File List
File Members
src
Util
Math.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 SCHUNK GmbH & Co. KG
3
* Copyright (c) 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef UTIL_MATH_H
19
#define UTIL_MATH_H
20
21
22
// ---- local includes ------------------------------------------------------ ;
23
24
// ---- global includes ----------------------------------------------------- ;
25
26
#include <math.h>
27
28
#if defined(__QNX__) || defined(_WIN32)
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
#define M_E 2.7182818284590452354
35
#define M_LOG2E 1.4426950408889634074
36
#define M_LOG10E 0.43429448190325182765
37
#define M_LN2 0.69314718055994530942
38
#define M_LN10 2.30258509299404568402
39
#define M_PI 3.14159265358979323846
40
#define M_PI_2 1.57079632679489661923
41
#define M_PI_4 0.78539816339744830962
42
#define M_1_PI 0.31830988618379067154
43
#define M_2_PI 0.63661977236758134308
44
#define M_2_SQRTPI 1.12837916709551257390
45
#define M_SQRT2 1.41421356237309504880
46
#define M_SQRT1_2 0.70710678118654752440
47
48
49
#ifdef __cplusplus
50
}
51
#endif
52
#endif
53
54
55
#define M_1_2PI (0.5*M_1_PI)
56
57
#endif // UTIL_MATH_H
58
59
60
61
62
63
64
65
66
schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Mon Nov 25 2019 03:48:19