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/geom/eggSphere.h>
5
6class mSphere_c : public EGG::Sphere3f {
7public:
8 mSphere_c() {}
9 mSphere_c(const mVec3_c &center, float radius) : EGG::Sphere3f(center, radius) {}
10
11 void set(const mVec3_c &center, float radius) {
12 mCenter = center;
13 mRadius = radius;
14 }
15
16 bool isZero() { return std::fabs(mRadius) <= FLT_EPSILON; }
17};
A three-dimensional floating point vector.
Definition m_vec.hpp:112