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

Method isOnPlane

code/geometry/primitives3d.cpp:61–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 double getAngle(P(u)) const {
60 return atan2((*this * u).length(), *this % u); }
61 bool isOnPlane(PL(A, B, C)) const {
62 return
63 abs((A - *this) * (B - *this) % (C - *this)) < EPS; } };
64int line_line_intersect(L(A, B), L(C, D), point3d &O){
65 if (abs((B - A) * (C - A) % (D - A)) > EPS) return 0;
66 if (((A - B) * (C - D)).length() < EPS)

Callers 1

line_plane_intersectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected