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

Method length

code/geometry/primitives3d.cpp:24–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 return point3d(y*p.z - z*p.y,
23 z*p.x - x*p.z, x*p.y - y*p.x); }
24 double length() const {
25 return sqrt(*this % *this); }
26 double distTo(P(p)) const {
27 return (*this - p).length(); }
28 double distTo(P(A), P(B)) const {

Callers 7

testFunction · 0.80
distToMethod · 0.80
signedDistToMethod · 0.80
getProjectionMethod · 0.80
getAngleMethod · 0.80
line_line_intersectFunction · 0.80
line_line_distanceFunction · 0.80

Calls 1

sqrtFunction · 0.85

Tested by 1

testFunction · 0.64