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

Method getAngle

code/geometry/primitives3d.cpp:57–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 bool isInSegmentStrictly(L(A, B)) const {
56 return isOnLine(A, B) && ((A - *this) % (B - *this))<-EPS;}
57 double getAngle() const {
58 return atan2(y, x); }
59 double getAngle(P(u)) const {
60 return atan2((*this * u).length(), *this % u); }
61 bool isOnPlane(PL(A, B, C)) const {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected