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

Method caliper

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

Source from the content-addressed store, hash-verified

3 ii pt;
4 double angle;
5 caliper(ii _pt, double _angle) : pt(_pt), angle(_angle) { }
6 double angle_to(ii pt2) {
7 double x = angle - atan2(pt2.second - pt.second,
8 pt2.first - pt.first);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected