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

Method operator%

code/geometry/primitives3d.cpp:19–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 point3d operator/(double k) const {
18 return point3d(x / k, y / k, z / k); }
19 double operator%(P(p)) const {
20 return x * p.x + y * p.y + z * p.z; }
21 point3d operator*(P(p)) const {
22 return point3d(y*p.z - z*p.y,
23 z*p.x - x*p.z, x*p.y - y*p.x); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected