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
8
class
mSphere_c :
public
EGG::Sphere3f
{
9
public
:
10
mSphere_c() :
EGG::Sphere3f
(
mVec3_c::Zero
, 0.0f) {}
11
12
bool
isZero() {
return
fabsf
(mRadius) <=
FLT_EPSILON
; }
13
};
EGG::Sphere3f
A sphere defined by a center point and a radius.
Definition
math.hpp:66
mVec3_c::Zero
static mVec3_c Zero
The null vector.
Definition
m_vec.hpp:195
float.h
fabsf
float fabsf(float x)
Returns the absolute value of x.
Definition
math.h:20
FLT_EPSILON
#define FLT_EPSILON
Difference between 1 and the smallest 32-bit floating-point value greater than 1.
Definition
float.h:12
math.h
include
game
mLib
m_sphere.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2