#define JPH_NAMESPACE_END
Definition: Core.h:378
std::uint32_t uint32
Definition: Core.h:455
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition: Memory.h:31
Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.
Definition: Float3.h:13
A simple triangle and its material.
Definition: Triangle.h:11
Vec3 GetCentroid() const
Get center of triangle.
Definition: Triangle.h:22
uint32 mMaterialIndex
Follows mV[3] so that we can read mV as 4 vectors.
Definition: Triangle.h:29
Triangle(const Float3 &inV1, const Float3 &inV2, const Float3 &inV3)
Definition: Triangle.h:17
JPH_OVERRIDE_NEW_DELETE Triangle()=default
Constructor.
Triangle(Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3)
Definition: Triangle.h:19
Float3 mV[3]
Vertices.
Definition: Triangle.h:28
Triangle(const Float3 &inV1, const Float3 &inV2, const Float3 &inV3, uint32 inMaterialIndex)
Definition: Triangle.h:18
JPH_INLINE void StoreFloat3(Float3 *outV) const
Store 3 floats to memory.
Definition: Vec3.inl:765
static JPH_INLINE Vec3 sLoadFloat3Unsafe(const Float3 &inV)
Load 3 floats from memory (reads 32 bits extra which it doesn't use)
Definition: Vec3.inl:134