def uniformScale(self, s=1): """ Uniform scale model. :param s: :return: """ self._model = _tr.matmul([_tr.uniformScale(s), self._model])
def rotationY(self, theta=0): """ Rotate model. :param theta: :return: """ self._model = _tr.matmul([_tr.rotationY(theta), self._model])
def applyTemporalTransform(self, t): """ Apply temporal transform to model until drawing. :param t: :return: """ self._modelPrev = self._model self._model = _tr.matmul([t, self._model])
def rotationA(self, theta, axis): """ Rotate model. :param theta: :param axis: :return: """ self._model = _tr.matmul([_tr.rotationA(theta, axis), self._model])
def scale(self, sx=1, sy=1, sz=1): """ Scale model. :param sx: :param sy: :param sz: :return: """ self._model = _tr.matmul([_tr.scale(sx, sy, sz), self._model])
def translate(self, tx=0, ty=0, tz=0): """ Translate model. :param tx: :param ty: :param tz: :return: """ self._model = _tr.matmul([_tr.translate(tx, ty, tz), self._model])
def shearing(self, xy=0, yx=0, xz=0, zx=0, yz=0, zy=0): """ Apply shear to model. :param xy: :param yx: :param xz: :param zx: :param yz: :param zy: :return: """ self._model = _tr.matmul( [_tr.shearing(xy, yx, xz, zx, yz, zy), self._model])