MCPcopy
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

ParaDistanceFunction · 0.95
cosMethod · 0.80
VListDiretFunction · 0.80
SmoothFunction · 0.80
DomainFunction · 0.80
FeatureLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected