Lines Matching refs:Mat
223 def toMat2(self): return Mat.fromScalar(2, 2, float(self.x))
224 def toMat2x3(self): return Mat.fromScalar(2, 3, float(self.x))
225 def toMat2x4(self): return Mat.fromScalar(2, 4, float(self.x))
226 def toMat3x2(self): return Mat.fromScalar(3, 2, float(self.x))
227 def toMat3(self): return Mat.fromScalar(3, 3, float(self.x))
228 def toMat3x4(self): return Mat.fromScalar(3, 4, float(self.x))
229 def toMat4x2(self): return Mat.fromScalar(4, 2, float(self.x))
230 def toMat4x3(self): return Mat.fromScalar(4, 3, float(self.x))
231 def toMat4(self): return Mat.fromScalar(4, 4, float(self.x))
718 class Mat(object): class
731 return Mat(numCols, numRows, scalars)
735 return Mat.fromScalar(numCols, numRows, 1.0)
748 res = Mat.identity(numCols, numRows)
774 return isinstance(other, Mat) and self.numRows == other.numRows and self.numCols == other.numCols
782 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…
784 class Mat2(Mat):
786 Mat.__init__(self, 2, 2, [m00, m10, m01, m11])
788 class Mat3(Mat):
790 Mat.__init__(self, 3, 3, [m00, m10, m20,
794 class Mat4(Mat):
796 Mat.__init__(self, 4, 4, [m00, m10, m20, m30,