19 Float3(
float inX,
float inY,
float inZ) : x(inX), y(inY), z(inZ) { }
21 float operator [] (
int inCoordinate)
const
24 return *(&x + inCoordinate);
27 bool operator == (
const Float3 &inRHS)
const
29 return x == inRHS.
x && y == inRHS.
y && z == inRHS.
z;
32 bool operator != (
const Float3 &inRHS)
const
34 return x != inRHS.
x || y != inRHS.
y || z != inRHS.
z;
44static_assert(is_trivial<Float3>(),
"Is supposed to be a trivial type!");
#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
Array< Float3 > VertexList
Definition Float3.h:42
#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
std::vector< T, STLAllocator< T > > Array
Definition STLAllocator.h:81
Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.
Definition Float3.h:13
Float3(float inX, float inY, float inZ)
Definition Float3.h:19
float y
Definition Float3.h:38
float z
Definition Float3.h:39
JPH_OVERRIDE_NEW_DELETE Float3()=default
Intentionally not initialized for performance reasons.
float x
Definition Float3.h:37
Float3(const Float3 &inRHS)=default