MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / SQ

Function SQ

Geometry/Geometry 3D.cpp:46–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44PT rotateccw(PT a, double t) { return PT(a.x * cos(t) - a.y * sin(t), a.x * sin(t) + a.y * cos(t)); }
45PT rotatecw(PT a, double t) { return PT(a.x * cos(t) + a.y * sin(t), -a.x * sin(t) + a.y * cos(t)); }
46double SQ(double x) { return x * x; }
47double rad_to_deg(double r) { return (r * 180.0 / PI); }
48double deg_to_rad(double d) { return (d * PI / 180.0); }
49double get_angle(PT a, PT b) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected