Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
Vector2 Vector2::operator + (const Vector2 &rhs) const
57
{
58
return Vector2(this->x + rhs.x, this->y + rhs.y);
59
}
60
61
Vector2 Vector2::operator - (const Vector2 &rhs) const
62
{
Callers
nothing calls this directly
Calls
3
Vector2
Class · 0.85
Vector3
Class · 0.85
Vector4
Class · 0.85
Tested by
no test coverage detected