67#if MOCHI_USE_REFLECTION
69 friend struct ::SReflectTypeTraits;
75inline constexpr bool IsPrimitiveShapeDef<Aabb> =
true;
84#if MOCHI_USE_REFLECTION
86struct SReflectTypeTraits<
superdex::Aabb> {
87 static constexpr SReflect::CoreType coreType = SReflect::CoreType::CT_struct;
88 static SReflect::StructTypeInfo
const& GetTypeInfo() {
89 static auto const* s_typeInfo = []() {
90 auto* ti = SReflect::MakeStructTypeInfo<superdex::Aabb>(
"superdex::Aabb");
91 SReflect::detail::AddField(
92 *ti,
"min", offsetof(superdex::Aabb, _min), SReflect::GetTypeInfo<superdex::Real3>());
93 SReflect::detail::AddField(
94 *ti,
"max", offsetof(superdex::Aabb, _max), SReflect::GetTypeInfo<superdex::Real3>());
Real3 GetHalfExtents() const
void SetMax(Real3 const &max)
bool operator==(Aabb const &rhs) const
Aabb(Real3 const &min, Real3 const &max)
void SetMin(Real3 const &min)
Vec4r VGetHalfExtents() const
bool operator!=(Aabb const &rhs) const
Aabb(Vec4r min, Vec4r max)
Simd< T, 4 > ToSimd(NdArray< T, 2 > const &v, T z=T(0), T w=T(0))
Real3 ToReal3(Simd< T, 4 > v)