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

Function operator+

include/reactphysics3d/mathematics/Vector3.h:313–315  ·  view source on GitHub ↗

Overloaded operator for addition

Source from the content-addressed store, hash-verified

311
312// Overloaded operator for addition
313RP3D_FORCE_INLINE Vector3 operator+(const Vector3& vector1, const Vector3& vector2) {
314 return Vector3(vector1.x + vector2.x, vector1.y + vector2.y, vector1.z + vector2.z);
315}
316
317// Overloaded operator for substraction
318RP3D_FORCE_INLINE Vector3 operator-(const Vector3& vector1, const Vector3& vector2) {

Callers

nothing calls this directly

Calls 1

Vector3Class · 0.70

Tested by

no test coverage detected