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/MSL_C/float.h>
5#include <lib/MSL_C/math.h>
6
7class mSphere_c {
8public:
10
11 bool isZero() { return fabsf(mRadius) <= FLT_EPSILON; }
12
14 float mRadius;
15};
mVec3_c mPos
The sphere position.
Definition m_sphere.hpp:13
float mRadius
The sphere radius.
Definition m_sphere.hpp:14
A three-dimensional floating point vector.
Definition m_vec.hpp:100
static mVec3_c Zero
The null vector.
Definition m_vec.hpp:183
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