AGX Dynamics 2.41.2.0
Loading...
Searching...
No Matches
Real.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
24namespace 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;
62
63 AGXCORE_EXPORT extern const Real64 Real64Max;
64 AGXCORE_EXPORT extern const Real64 Real64Min;
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