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))
716 class Mat(object): class
729 return Mat(numCols, numRows, scalars)
733 return Mat.fromScalar(numCols, numRows, 1.0)
746 res = Mat.identity(numCols, numRows)
772 return isinstance(other, Mat) and self.numRows == other.numRows and self.numCols == other.numCols
780 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…
782 class Mat2(Mat):
784 Mat.__init__(self, 2, 2, [m00, m10, m01, m11])
786 class Mat3(Mat):
788 Mat.__init__(self, 3, 3, [m00, m10, m20,
792 class Mat4(Mat):
794 Mat.__init__(self, 4, 4, [m00, m10, m20, m30,