Exemplo n.º 1
0
 def e(j, k):
     ev = LightVector.l_sub(xyz[k - 1], xyz[j - 1])
     ev.normalize()
     return ev
Exemplo n.º 2
0
 def e(j, k):
     ev = LightVector.l_sub(args[k - 1], args[j - 1])
     ev.normalize()
     return ev
Exemplo n.º 3
0
 def r(j, k):
     return LightVector.l_sub(args[k - 1], args[j - 1]).magnitude()
Exemplo n.º 4
0
 def r(j, k):
     return LightVector.l_sub(args[k-1], args[j-1]).magnitude()
Exemplo n.º 5
0
 def value_for_xyz(cls, xyz):
     v1 = LightVector.l_sub(xyz[0], xyz[1])
     v2 = LightVector.l_sub(xyz[2], xyz[1])
     return angle_between_vectors(v1, v2)
Exemplo n.º 6
0
 def e(j, k):
     ev = LightVector.l_sub(args[k-1], args[j-1]); ev.normalize()
     return ev
Exemplo n.º 7
0
 def e(j, k):
     ev = LightVector.l_sub(xyz[k-1], xyz[j-1]); ev.normalize()
     return ev
Exemplo n.º 8
0
 def value_for_xyz(cls, xyz):
     """
     """
     return LightVector.l_sub(xyz[1], xyz[0]).magnitude()
Exemplo n.º 9
0
 def value_for_xyz(cls, xyz):
     v1 = LightVector.l_sub(xyz[0], xyz[1])
     v2 = LightVector.l_sub(xyz[2], xyz[1])
     return angle_between_vectors(v1, v2)
Exemplo n.º 10
0
 def value_for_xyz(cls, xyz):
     """
     """
     return LightVector.l_sub(xyz[1], xyz[0]).magnitude()