Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atraczyk/2d-engine
/ operator+
Method
operator+
engine/src/point.cpp:39–42 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
}
38
39
Point Point::operator+(const Point &rhs) const
40
{
41
return Point(this->x + rhs.x, this->y + rhs.y);
42
}
43
44
Point Point::operator-(const Point &rhs) const
45
{
Callers
nothing calls this directly
Calls
1
Point
Class · 0.85
Tested by
no test coverage detected