mirror of
https://github.com/zeldaret/ss
synced 2026-07-11 14:48:32 -04:00
d_t_mass_obj 99%
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#ifndef EGG_VECTOR_H
|
||||
#define EGG_VECTOR_H
|
||||
|
||||
#include "JSystem/JMath/JMath.h"
|
||||
#include "common.h"
|
||||
#include "egg/math/eggMath.h"
|
||||
#include "nw4r/math/math_arithmetic.h"
|
||||
#include "nw4r/math/math_triangular.h"
|
||||
|
||||
#include "nw4r/math.h"
|
||||
#include <cmath>
|
||||
|
||||
namespace EGG {
|
||||
|
||||
@@ -132,6 +135,10 @@ struct Vector3f : public nw4r::math::VEC3 {
|
||||
return squaredLength() <= Math<f32>::epsilon();
|
||||
}
|
||||
|
||||
bool isZero2() const {
|
||||
return fabsf(JMathInlineVEC::C_VECSquareMag(*this)) <= Math<f32>::epsilon();
|
||||
}
|
||||
|
||||
void setZero() {
|
||||
x = y = z = 0.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user