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

Method isOnLine

code/geometry/primitives3d.cpp:51–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 bool isZero() const {
50 return abs(x) < EPS && abs(y) < EPS && abs(z) < EPS; }
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 {

Callers 1

line_line_intersectFunction · 0.80

Calls 1

isZeroMethod · 0.80

Tested by

no test coverage detected