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

Function operator-

include/reactphysics3d/mathematics/Vector2.h:286–288  ·  view source on GitHub ↗

Overloaded operator for substraction

Source from the content-addressed store, hash-verified

284
285// Overloaded operator for substraction
286RP3D_FORCE_INLINE Vector2 operator-(const Vector2& vector1, const Vector2& vector2) {
287 return Vector2(vector1.x - vector2.x, vector1.y - vector2.y);
288}
289
290// Overloaded operator for the negative of a vector
291RP3D_FORCE_INLINE Vector2 operator-(const Vector2& vector) {

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected