Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test
Function · 0.80
distTo
Method · 0.80
signedDistTo
Method · 0.80
getProjection
Method · 0.80
getAngle
Method · 0.80
line_line_intersect
Function · 0.80
line_line_distance
Function · 0.80
Calls
1
sqrt
Function · 0.85
Tested by
1
test
Function · 0.64