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))
738 class Mat(object): class
751 return Mat(numCols, numRows, scalars)
755 return Mat.fromScalar(numCols, numRows, 1.0)
768 res = Mat.identity(numCols, numRows)
794 return isinstance(other, Mat) and self.numRows == other.numRows and self.numCols == other.numCols
802 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…
804 class Mat2(Mat):
806 Mat.__init__(self, 2, 2, [m00, m10, m01, m11])
808 class Mat3(Mat):
810 Mat.__init__(self, 3, 3, [m00, m10, m20,
814 class Mat4(Mat):
816 Mat.__init__(self, 4, 4, [m00, m10, m20, m30,