Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/opengeos/segment-geospatial
/ length
Method
length
samgeo/fer.py:54–55 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
52
self.y = self.y2 - self.y1
53
54
def
length(self):
55
return
math.sqrt(math.pow(self.x, 2) + math.pow(self.y, 2))
56
57
def
cos(self, v):
58
dot = self.x * v.x + self.y * v.y
Callers
6
ParaDistance
Function · 0.95
cos
Method · 0.80
VListDiret
Function · 0.80
Smooth
Function · 0.80
Domain
Function · 0.80
FeatureLine
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected