20 constexpr Float3(
float inX,
float inY,
float inZ) :
x(inX),
y(inY),
z(inZ) { }
22 float operator [] (
int inCoordinate)
const
25 return *(&
x + inCoordinate);
28 bool operator == (
const Float3 &inRHS)
const
30 return x == inRHS.
x &&
y == inRHS.
y &&
z == inRHS.
z;
33 bool operator != (
const Float3 &inRHS)
const
35 return x != inRHS.
x ||
y != inRHS.
y ||
z != inRHS.
z;
45static_assert(std::is_trivial<Float3>(),
"Is supposed to be a trivial type!");
#define JPH_NAMESPACE_END
Definition Core.h:425
#define JPH_NAMESPACE_BEGIN
Definition Core.h:419
Array< Float3 > VertexList
Definition Float3.h:43
#define JPH_MAKE_HASHABLE(type,...)
Definition HashCombine.h:223
#define JPH_ASSERT(...)
Definition IssueReporting.h:33
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:50
constexpr Float3(float inX, float inY, float inZ)
Definition Float3.h:20
float y
Definition Float3.h:39
float z
Definition Float3.h:40
JPH_OVERRIDE_NEW_DELETE Float3()=default
Intentionally not initialized for performance reasons.
float x
Definition Float3.h:38
Float3(const Float3 &inRHS)=default