MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / rotate

Method rotate

code/geometry/rotating_calipers.cpp:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 while (x <= -pi) x += 2*pi;
11 return x; }
12 void rotate(double by) {
13 angle -= by;
14 while (angle < 0) angle += 2*pi; }
15 void move_to(ii pt2) { pt = pt2; }
16 double dist(const caliper &other) {
17 point a(pt.first,pt.second),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected