NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m_sphere.hpp
1#pragma once
2
3#include <game/mLib/m_vec.hpp>
4#include <lib/egg/math.hpp>
5#include <lib/MSL_C/float.h>
6#include <lib/MSL_C/math.h>
7
8class mSphere_c : public EGG::Sphere3f {
9public:
10 mSphere_c() : EGG::Sphere3f(mVec3_c::Zero, 0.0f) {}
11
12 bool isZero() { return fabsf(mRadius) <= FLT_EPSILON; }
13};
A sphere defined by a center point and a radius.
Definition math.hpp:66
static mVec3_c Zero
The null vector.
Definition m_vec.hpp:195
float fabsf(float x)
Returns the absolute value of x.
Definition math.h:20
#define FLT_EPSILON
Difference between 1 and the smallest 32-bit floating-point value greater than 1.
Definition float.h:12