| 44 | PT rotateccw(PT a, double t) { return PT(a.x * cos(t) - a.y * sin(t), a.x * sin(t) + a.y * cos(t)); } |
| 45 | PT rotatecw(PT a, double t) { return PT(a.x * cos(t) + a.y * sin(t), -a.x * sin(t) + a.y * cos(t)); } |
| 46 | double SQ(double x) { return x * x; } |
| 47 | double rad_to_deg(double r) { return (r * 180.0 / PI); } |
| 48 | double deg_to_rad(double d) { return (d * PI / 180.0); } |
| 49 | double get_angle(PT a, PT b) { |
nothing calls this directly
no outgoing calls
no test coverage detected