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

Method length

include/reactphysics3d/mathematics/Vector3.h:197–199  ·  view source on GitHub ↗

Return the length of the vector

Source from the content-addressed store, hash-verified

195
196// Return the length of the vector
197RP3D_FORCE_INLINE decimal Vector3::length() const {
198 return std::sqrt(x*x + y*y + z*z);
199}
200
201// Return the square of the length of the vector
202RP3D_FORCE_INLINE decimal Vector3::lengthSquare() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected