def update_matrices(self): '''Update inverse and OpenGL matrices, from the current transformation. If you change manually the transformation, you should call this function, or the drawing will failed. ''' self._transform_inv = inverse_matrix(self._transform) self._transform_gl = self._transform.T.tolist() #for openGL self._transform_inv_gl = self._transform.T.tolist() #for openGL
def update_matrices(self): '''Update inverse and OpenGL matrices, from the current transformation. If you change manually the transformation, you should call this function, or the drawing will failed. ''' self._transform_inv = inverse_matrix(self._transform) self._transform_gl = ascontiguousarray(self._transform.T, dtype='float32') self._transform_inv_gl = ascontiguousarray(self._transform.T, dtype='float32')