MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / operator-

Function operator-

include/reactphysics3d/mathematics/Vector3.h:318–320  ·  view source on GitHub ↗

Overloaded operator for substraction

Source from the content-addressed store, hash-verified

316
317// Overloaded operator for substraction
318RP3D_FORCE_INLINE Vector3 operator-(const Vector3& vector1, const Vector3& vector2) {
319 return Vector3(vector1.x - vector2.x, vector1.y - vector2.y, vector1.z - vector2.z);
320}
321
322// Overloaded operator for the negative of a vector
323RP3D_FORCE_INLINE Vector3 operator-(const Vector3& vector) {

Callers

nothing calls this directly

Calls 1

Vector3Class · 0.70

Tested by

no test coverage detected