Example #1
0
    def __init__(self,
                 s=np.array([0, 0, 0]),
                 v=np.array([0, 0, 1]),
                 t=np.arange(0, 10, 1)):

        self._s = s
        self._v = v
        self._t = t
        self._light = Math.vector_trans(s) + Math.dot(t, v)
Example #2
0
 def __set_light(self):
     self._light = Math.vector_trans(self._s)+Math.dot(self._t, self._v)