MCPcopy Create free account
hub / github.com/ICE27182/Python-3D-renderer / v_dot_u

Function v_dot_u

pyrender.py:19–20  ·  view source on GitHub ↗
(v, u)

Source from the content-addressed store, hash-verified

17 length = sqrt(vector[0]**2 + vector[1]**2 + vector[2]**2)
18 return [vector[0] / length, vector[1] / length, vector[2] / length,]
19def v_dot_u(v, u):
20 return v[0]*u[0] + v[1]*u[1] + v[2]*u[2]
21def len_v(v):
22 return sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2])
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected