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

Method isUnit

include/reactphysics3d/mathematics/Vector3.h:245–247  ·  view source on GitHub ↗

Return true if the vector is unit and false otherwise

Source from the content-addressed store, hash-verified

243
244// Return true if the vector is unit and false otherwise
245RP3D_FORCE_INLINE bool Vector3::isUnit() const {
246 return reactphysics3d::approxEqual(lengthSquare(), decimal(1.0));
247}
248
249// Return true if the values are not NAN OR INF
250RP3D_FORCE_INLINE bool Vector3::isFinite() const {

Callers

nothing calls this directly

Calls 1

approxEqualFunction · 0.70

Tested by

no test coverage detected