61#if MOCHI_LANGUAGE_CPP20
74inline constexpr bool IsPrimitiveShapeDef<Plane> =
true;
bool operator!=(Plane const &other) const =default
real GetDistanceFromOrigin() const
bool operator==(Plane const &other) const =default
Plane(Vec4r normal, real distFromOrigin)
Real3 normal
Outward-facing plane normal (unit length).
real distance
Signed distance from the origin along the normal [m].
Plane(Real3 const &normal, real distFromOrigin)
Simd< T, 4 > ToSimd(NdArray< T, 2 > const &v, T z=T(0), T w=T(0))
Real3 ToReal3(Simd< T, 4 > v)
#define MOCHI_STRUCT_END()
#define MOCHI_FIELD(name)
#define MOCHI_STRUCT_BEGIN(name)
#define MOCHI_ATTRIBUTE(...)