Lines Matching refs:Mat
245 def toMat2(self): return Mat.fromScalar(2, 2, float(self.x))
246 def toMat2x3(self): return Mat.fromScalar(2, 3, float(self.x))
247 def toMat2x4(self): return Mat.fromScalar(2, 4, float(self.x))
248 def toMat3x2(self): return Mat.fromScalar(3, 2, float(self.x))
249 def toMat3(self): return Mat.fromScalar(3, 3, float(self.x))
250 def toMat3x4(self): return Mat.fromScalar(3, 4, float(self.x))
251 def toMat4x2(self): return Mat.fromScalar(4, 2, float(self.x))
252 def toMat4x3(self): return Mat.fromScalar(4, 3, float(self.x))
253 def toMat4(self): return Mat.fromScalar(4, 4, float(self.x))
740 class Mat(object): class
753 return Mat(numCols, numRows, scalars)
757 return Mat.fromScalar(numCols, numRows, 1.0)
770 res = Mat.identity(numCols, numRows)
796 return isinstance(other, Mat) and self.numRows == other.numRows and self.numCols == other.numCols
804 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…
806 class Mat2(Mat):
808 Mat.__init__(self, 2, 2, [m00, m10, m01, m11])
810 class Mat3(Mat):
812 Mat.__init__(self, 3, 3, [m00, m10, m20,
816 class Mat4(Mat):
818 Mat.__init__(self, 4, 4, [m00, m10, m20, m30,