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

Method isZero

code/geometry/primitives3d.cpp:49–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 point3d Z = axe.normalize(axe % (*this - O));
48 return O + Z + (*this - O - Z).rotate(alpha, O); }
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 {

Callers 3

isOnLineMethod · 0.80
plane_plane_intersectFunction · 0.80
line_line_distanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected