MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / length

Method length

PythonAPI/examples/no_rendering_mode.py:171–173  ·  view source on GitHub ↗

Returns the length of a vector

(v)

Source from the content-addressed store, hash-verified

169
170 @staticmethod
171 def length(v):
172 """Returns the length of a vector"""
173 return math.sqrt(v.x**2 + v.y**2 + v.z**2)
174
175 @staticmethod
176 def get_bounding_box(actor):

Callers 15

get_min_offsetMethod · 0.80
cutMethod · 0.80
mainFunction · 0.80
get_min_offsetMethod · 0.80
cutMethod · 0.80
cutMethod · 0.80
do_deathFunction · 0.80
do_speed_statisticsFunction · 0.80
get_ttc_velFunction · 0.80
do_controlFunction · 0.80
appendFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected