Lines Matching full:matrix
24 struct Matrix struct
26 Matrix();
27 Matrix(const int i);
28 Matrix(const float m[16]);
29 Matrix(const float m[4][4]);
30 Matrix(float m11, float m12, float m13,
33 Matrix(float m11, float m12, float m13, float m14,
37 Matrix(const Vector &v1, const Vector &v2, const Vector &v3); // Column vectors
39 Matrix &operator=(const Matrix &N);
44 static Matrix diag(float m11, float m22, float m33, float m44);
48 Matrix operator+() const;
49 Matrix operator-() const;
51 Matrix operator!() const; // Inverse
52 Matrix operator~() const; // Transpose
54 Matrix &operator+=(const Matrix &N);
55 Matrix &operator-=(const Matrix &N);
56 Matrix &operator*=(float s);
57 Matrix &operator*=(const Matrix &N);
58 Matrix &operator/=(float s);
66 friend bool operator==(const Matrix &M, const Matrix &N);
67 friend bool operator!=(const Matrix &M, const Matrix &N);
69 friend Matrix operator+(const Matrix &M, const Matrix &N);
70 friend Matrix operator-(const Matrix &M, const Matrix &N);
71 friend Matrix operator*(float s, const Matrix &M);
72 friend Matrix operator*(const Matrix &M, const Matrix &N);
73 friend Matrix operator/(const Matrix &M, float s);
77 static float det(const Matrix &M);
89 static float det3(const Matrix &M);
91 static float tr(const Matrix &M);
93 Matrix &orthogonalise(); // Gram-Schmidt orthogonalisation of 3x3 submatrix
95 static Matrix eulerRotate(const Vector &v);
96 static Matrix eulerRotate(float x, float y, float z);
98 static Matrix translate(const Vector &v);
99 static Matrix translate(float x, float y, float z);
101 static Matrix scale(const Vector &v);
102 static Matrix scale(float x, float y, float z);
104 static Matrix lookAt(const Vector &v);
105 static Matrix lookAt(float x, float y, float z);
113 inline Matrix::Matrix() in Matrix() function in sw::Matrix
117 inline Matrix::Matrix(const int i) in Matrix() function in sw::Matrix
121 Matrix &M = *this; in Matrix()
129 inline Matrix::Matrix(const float m[16]) in Matrix() function in sw::Matrix
131 Matrix &M = *this; in Matrix()
139 inline Matrix::Matrix(const float m[4][4]) in Matrix() function in sw::Matrix
141 Matrix &M = *this; in Matrix()
149 inline Matrix::Matrix(float m11, float m12, float m13, in Matrix() function in sw::Matrix
153 Matrix &M = *this; in Matrix()
161 inline Matrix::Matrix(float m11, float m12, float m13, float m14, in Matrix() function in sw::Matrix
166 Matrix &M = *this; in Matrix()
174 inline Matrix::Matrix(const Vector &v1, const Vector &v2, const Vector &v3) in Matrix() function in sw::Matrix
176 Matrix &M = *this; in Matrix()
184 inline Matrix &Matrix::operator=(const Matrix &N) in operator =()
186 Matrix &M = *this; in operator =()
196 inline float *Matrix::operator[](int i) in operator []()
201 inline const float *Matrix::operator[](int i) const in operator []()
206 inline float &Matrix::operator()(int i, int j) in operator ()()
211 inline const float &Matrix::operator()(int i, int j) const in operator ()()