62#if MOCHI_LANGUAGE_CPP20
75inline constexpr bool IsPrimitiveShapeDef<Sphere> =
true;
Real3 center
Center of the sphere [m].
bool operator==(Sphere const &other) const =default
bool operator!=(Sphere const &other) const =default
Sphere(Real3 const ¢er, real radius)
real radius
Radius of the sphere [m].
Sphere(Vec4r packedCenterAndRadius)
Sphere(Vec4r center, real radius)
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(...)