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

Method zero

include/reactphysics3d/mathematics/Vector2.h:346–348  ·  view source on GitHub ↗

Return the zero vector

Source from the content-addressed store, hash-verified

344
345// Return the zero vector
346RP3D_FORCE_INLINE Vector2 Vector2::zero() {
347 return Vector2(0, 0);
348}
349
350// Function to test if two vectors are (almost) equal
351RP3D_FORCE_INLINE bool approxEqual(const Vector2& vec1, const Vector2& vec2, decimal epsilon = MACHINE_EPSILON) {

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected