MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / isZero

Method isZero

include/reactphysics3d/mathematics/Vector3.h:255–257  ·  view source on GitHub ↗

Return true if the vector is the zero vector

Source from the content-addressed store, hash-verified

253
254// Return true if the vector is the zero vector
255RP3D_FORCE_INLINE bool Vector3::isZero() const {
256 return reactphysics3d::approxEqual(lengthSquare(), decimal(0.0));
257}
258
259// Overloaded operator for the equality condition
260RP3D_FORCE_INLINE bool Vector3::operator== (const Vector3& vector) const {

Callers

nothing calls this directly

Calls 1

approxEqualFunction · 0.70

Tested by

no test coverage detected