MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / operator+

Function operator+

demo/Blackholio/server-cpp/spacetimedb/src/lib.cpp:54–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52SPACETIMEDB_STRUCT(DbVector2, x, y)
53
54inline DbVector2 operator+(const DbVector2& a, const DbVector2& b) {
55 return DbVector2(a.x + b.x, a.y + b.y);
56}
57
58inline DbVector2 operator-(const DbVector2& a, const DbVector2& b) {
59 return DbVector2(a.x - b.x, a.y - b.y);

Callers

nothing calls this directly

Calls 1

DbVector2Class · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…