Example #1
0
 def e(j, k):
     ev = LightVector.l_sub(xyz[k - 1], xyz[j - 1])
     ev.normalize()
     return ev
Example #2
0
 def e(j, k):
     ev = LightVector.l_sub(args[k - 1], args[j - 1])
     ev.normalize()
     return ev
Example #3
0
 def r(j, k):
     return LightVector.l_sub(args[k - 1], args[j - 1]).magnitude()
Example #4
0
 def r(j, k):
     return LightVector.l_sub(args[k-1], args[j-1]).magnitude()
Example #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)
Example #6
0
 def e(j, k):
     ev = LightVector.l_sub(args[k-1], args[j-1]); ev.normalize()
     return ev
Example #7
0
 def e(j, k):
     ev = LightVector.l_sub(xyz[k-1], xyz[j-1]); ev.normalize()
     return ev
Example #8
0
 def value_for_xyz(cls, xyz):
     """
     """
     return LightVector.l_sub(xyz[1], xyz[0]).magnitude()
Example #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)
Example #10
0
 def value_for_xyz(cls, xyz):
     """
     """
     return LightVector.l_sub(xyz[1], xyz[0]).magnitude()