20 Double3(
double inX,
double inY,
double inZ) : x(inX), y(inY), z(inZ) { }
22 double operator [] (
int inCoordinate)
const
25 return *(&x + inCoordinate);
28 bool operator == (
const Double3 &inRHS)
const
30 return x == inRHS.
x && y == inRHS.
y && z == inRHS.
z;
33 bool operator != (
const Double3 &inRHS)
const
35 return x != inRHS.
x || y != inRHS.
y || z != inRHS.
z;
43static_assert(is_trivial<Double3>(),
"Is supposed to be a trivial type!");
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
#define JPH_MAKE_HASHABLE(type,...)
Definition: HashCombine.h:87
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition: Memory.h:29
Class that holds 3 doubles. Used as a storage class. Convert to DVec3 for calculations.
Definition: Double3.h:13
double z
Definition: Double3.h:40
double y
Definition: Double3.h:39
JPH_OVERRIDE_NEW_DELETE Double3()=default
Intentionally not initialized for performance reasons.
Double3(const Double3 &inRHS)=default
double x
Definition: Double3.h:38
Double3(double inX, double inY, double inZ)
Definition: Double3.h:20