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

Method isInSegment

code/geometry/primitives3d.cpp:53–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 bool isOnLine(L(A, B)) const {
52 return ((A - *this) * (B - *this)).isZero(); }
53 bool isInSegment(L(A, B)) const {
54 return isOnLine(A, B) && ((A - *this) % (B - *this))<EPS;}
55 bool isInSegmentStrictly(L(A, B)) const {
56 return isOnLine(A, B) && ((A - *this) % (B - *this))<-EPS;}
57 double getAngle() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected