def getInverseMat (self) -> np.ndarray: return (MV.mult(MV.inverseScale(self.scale[0], self.scale[1], self.scale[2]), MV.inverseTranslate(self.pos[0], self.pos[1], self.pos[2])))
def getTransformationMatrix (self) -> np.ndarray: scaleMat = MV.scale(self.scale[0], self.scale[1], self.scale[2]) translateMat = MV.translate(self.pos[0], self.pos[1], self.pos[2]) # translate then scale return MV.mult(scaleMat, translateMat)