AGX Dynamics  2.35.0.1
Real.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXDATA_REAL_H
18 #define AGXDATA_REAL_H
19 
20 #include <agx/config.h>
21 #include <agx/agxCore_export.h>
22 #include <limits>
23 
24 namespace agx
25 {
36  {
39  };
40 
42  typedef double Real;
43 
44  typedef float Real32;
45  typedef double Real64;
46 
47 #ifdef max
48 #undef max
49 #endif
50 
51 #ifdef min
52 #undef min
53 #endif
54 
55  AGXCORE_EXPORT extern const Real RealMax;
56  AGXCORE_EXPORT extern const Real RealMin;
57  AGXCORE_EXPORT extern const Real RealEpsilon;
58 
59  AGXCORE_EXPORT extern const Real32 Real32Max;
60  AGXCORE_EXPORT extern const Real32 Real32Min;
61  AGXCORE_EXPORT extern const Real32 Real32Epsilon;
62 
63  AGXCORE_EXPORT extern const Real64 Real64Max;
64  AGXCORE_EXPORT extern const Real64 Real64Min;
65  AGXCORE_EXPORT extern const Real64 Real64Epsilon;
66 }
67 
68 
69 #endif /* _AGXDATA_REAL_H_ */
#define AGXCORE_EXPORT
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT const Real32 Real32Max
RealModeEnum
The data type for basic floating point representation.
Definition: Real.h:36
@ REAL_64BIT
Definition: Real.h:38
@ REAL_32BIT
Definition: Real.h:37
double Real64
Definition: Real.h:45
static const RealModeEnum RealMode
Definition: Real.h:41
AGXCORE_EXPORT const Real RealMax
AGXCORE_EXPORT const Real RealEpsilon
AGXCORE_EXPORT const Real32 Real32Min
AGXCORE_EXPORT const Real64 Real64Epsilon
AGXCORE_EXPORT const Real32 Real32Epsilon
double Real
Definition: Real.h:42
float Real32
Definition: Real.h:44
AGXCORE_EXPORT const Real64 Real64Max
AGXCORE_EXPORT const Real64 Real64Min
AGXCORE_EXPORT const Real RealMin