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

Function operator+

include/reactphysics3d/mathematics/Vector2.h:281–283  ·  view source on GitHub ↗

Overloaded operator for addition

Source from the content-addressed store, hash-verified

279
280// Overloaded operator for addition
281RP3D_FORCE_INLINE Vector2 operator+(const Vector2& vector1, const Vector2& vector2) {
282 return Vector2(vector1.x + vector2.x, vector1.y + vector2.y);
283}
284
285// Overloaded operator for substraction
286RP3D_FORCE_INLINE Vector2 operator-(const Vector2& vector1, const Vector2& vector2) {

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected