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