AGX Dynamics  2.38.0.2
Real.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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_ */
AGXCORE_EXPORT
#define AGXCORE_EXPORT
agx::RealEpsilon
const AGXCORE_EXPORT Real RealEpsilon
agx::Real64
double Real64
Definition: Real.h:45
agx::Real
double Real
Definition: Real.h:42
agx::REAL_64BIT
@ REAL_64BIT
Definition: Real.h:38
agx::RealMode
static const RealModeEnum RealMode
Definition: Real.h:41
agx::Real32Max
const AGXCORE_EXPORT Real32 Real32Max
agx::Real32
float Real32
Definition: Real.h:44
agx::RealMax
const AGXCORE_EXPORT Real RealMax
agx::Real32Epsilon
const AGXCORE_EXPORT Real32 Real32Epsilon
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
agx::REAL_32BIT
@ REAL_32BIT
Definition: Real.h:37
agx::Real32Min
const AGXCORE_EXPORT Real32 Real32Min
agx::RealMin
const AGXCORE_EXPORT Real RealMin
agxCore_export.h
agx::Real64Max
const AGXCORE_EXPORT Real64 Real64Max
agx::Real64Min
const AGXCORE_EXPORT Real64 Real64Min
agx::Real64Epsilon
const AGXCORE_EXPORT Real64 Real64Epsilon
agx::RealModeEnum
RealModeEnum
The data type for basic floating point representation.
Definition: Real.h:35