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

Method isInSegmentStrictly

code/geometry/primitives3d.cpp:55–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {
58 return atan2(y, x); }
59 double getAngle(P(u)) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected