mirror of https://github.com/AxioDL/zeus.git
Add IsNan helper function to CVector3f
This commit is contained in:
parent
b3806c03a5
commit
9130bf977e
|
@ -139,6 +139,7 @@ public:
|
||||||
[[nodiscard]] bool isNotInf() const { return !(std::isinf(x()) || std::isinf(y()) || std::isinf(z())); }
|
[[nodiscard]] bool isNotInf() const { return !(std::isinf(x()) || std::isinf(y()) || std::isinf(z())); }
|
||||||
|
|
||||||
[[nodiscard]] bool isMagnitudeSafe() const { return isNotInf() && magSquared() >= 9.9999994e-29; }
|
[[nodiscard]] bool isMagnitudeSafe() const { return isNotInf() && magSquared() >= 9.9999994e-29; }
|
||||||
|
[[nodiscard]] bool isNaN() const { return std::isnan(x()) || std::isnan(y()) || std::isnan(z()); }
|
||||||
|
|
||||||
void zeroOut() { mSimd.broadcast(0.f); }
|
void zeroOut() { mSimd.broadcast(0.f); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue