MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / operator+

Method operator+

code/geometry/primitives3d.cpp:9–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 point3d(double _x, double _y, double _z)
8 : x(_x), y(_y), z(_z) {}
9 point3d operator+(P(p)) const {
10 return point3d(x + p.x, y + p.y, z + p.z); }
11 point3d operator-(P(p)) const {
12 return point3d(x - p.x, y - p.y, z - p.z); }
13 point3d operator-() const {

Callers

nothing calls this directly

Calls 1

point3dClass · 0.85

Tested by

no test coverage detected