def transformScale(self, s): s = vect.mul(self.wscale, s) s = vect.qmul(self.wrot, s) return s
def transformDirection(self, d): return vect.qmul(self.wrot, d)
def transformRotation(self, r): r = vect.qmul(self.wrot, r) return r
def transformPoint(self, p): p = vect.mul(self.wscale, p) p = vect.qmul(self.wrot, p) p = vect.add(self.wloc, p) return p