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

Method lengthSquare

include/reactphysics3d/mathematics/Vector3.h:202–204  ·  view source on GitHub ↗

Return the square of the length of the vector

Source from the content-addressed store, hash-verified

200
201// Return the square of the length of the vector
202RP3D_FORCE_INLINE decimal Vector3::lengthSquare() const {
203 return x*x + y*y + z*z;
204}
205
206// Scalar product of two vectors (RP3D_FORCE_INLINE)
207RP3D_FORCE_INLINE decimal Vector3::dot(const Vector3& vector) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected