ICF 3.0.5.47
Technical documentation of ICF Libraries
imath.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef imath_included
7#define imath_included
8
9
10// Qt includes
11#include <QtCore/QtGlobal>
12
13// ICF includes
14#include <iser/iser.h>
15
19static const double I_PI = 3.14159265358979323846;
20
24static const double I_2PI = 6.2831853071795864769;
25
26
36namespace imath
37{
38
39
40inline double GetRadianFromDegree(double degree)
41{
42 return degree / 180.0 * I_PI;
43}
44
45
46inline double GetDegreeFromRadian(double radian)
47{
48 return radian * 180.0 / I_PI;
49}
50
51
52} // namespace imath
53
54
55#endif // !imath_included
56
Package with mathematical functions and algebraical primitives.
double GetDegreeFromRadian(double radian)
Definition imath.h:46
double GetRadianFromDegree(double degree)
Definition imath.h:40

© Witold Gantzke and Kirill Lepskiy