MCPcopy Create free account
hub / github.com/Kitware/VTK / dot

Function dot

Interaction/Style/Testing/Python/TestStyleUser.py:34–35  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

32def magnitude(v):
33 return math.sqrt(sum(v[i]*v[i] for i in range(0,3)))
34def dot(u, v):
35 return sum(u[i]*v[i] for i in range(0,3))
36def normalize(v):
37 vmag = magnitude(v)
38 return [ v[i]/vmag for i in range(0,3) ]

Callers 1

mouseMiddleMoveFunction · 0.70

Calls 2

sumFunction · 0.50
rangeClass · 0.50

Tested by

no test coverage detected