MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / operator +

Method operator +

engine/src/vector.cpp:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56Vector2 Vector2::operator + (const Vector2 &rhs) const
57{
58 return Vector2(this->x + rhs.x, this->y + rhs.y);
59}
60
61Vector2 Vector2::operator - (const Vector2 &rhs) const
62{

Callers

nothing calls this directly

Calls 3

Vector2Class · 0.85
Vector3Class · 0.85
Vector4Class · 0.85

Tested by

no test coverage detected