MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / operator*

Function operator*

contents/IFS/code/cpp/IFS.cpp:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11Point operator+(Point lhs, Point rhs) { return {lhs.x + rhs.x, lhs.y + rhs.y}; }
12Point operator*(double k, Point pt) { return {k * pt.x, k * pt.y}; }
13Point operator*(Point pt, double k) { return k * pt; }
14
15using PointVector = std::vector<Point>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected