Home | History | Annotate | Download | only in Renderer

Lines Matching refs:Matrix

15 #include "Matrix.hpp"
22 Matrix Matrix::diag(float m11, float m22, float m33, float m44)
24 return Matrix(m11, 0, 0, 0,
30 Matrix::operator float*()
35 Matrix Matrix::operator+() const
40 Matrix Matrix::operator-() const
42 const Matrix &M = *this;
44 return Matrix(-M(1, 1), -M(1, 2), -M(1, 3), -M(1, 4),
50 Matrix Matrix::operator!() const
52 const Matrix &M = *this;
53 Matrix I;
74 // Adjoint Matrix
104 Matrix Matrix::operator~() const
106 const Matrix &M = *this;
108 return Matrix(M(1, 1), M(2, 1), M(3, 1), M(4, 1),
114 Matrix &Matrix::operator+=(const Matrix &N)
116 Matrix &M = *this;
126 Matrix &Matrix::operator-=(const Matrix &N)
128 Matrix &M = *this;
138 Matrix &Matrix::operator*=(float s)
140 Matrix &M = *this;
150 Matrix &Matrix::operator*=(const Matrix &M)
155 Matrix &Matrix::operator/=(float s)
162 bool operator==(const Matrix &M, const Matrix &N)
173 bool operator!=(const Matrix &M, const Matrix &N)
184 Matrix operator+(const Matrix &M, const Matrix &N)
186 return Matrix(M(1, 1) + N(1, 1), M(1, 2) + N(1, 2), M(1, 3) + N(1, 3), M(1, 4) + N(1, 4),
192 Matrix operator-(const Matrix &M, const Matrix &N)
194 return Matrix(M(1, 1) - N(1, 1), M(1, 2) - N(1, 2), M(1, 3) - N(1, 3), M(1, 4) - N(1, 4),
200 Matrix operator*(float s, const Matrix &M)
202 return Matrix(s * M(1, 1), s * M(1, 2), s * M(1, 3), s * M(1, 4),
208 Matrix operator*(const Matrix &M, float s)
210 return Matrix(M(1, 1) * s, M(1, 2) * s, M(1, 3) * s, M(1, 4) * s,
216 Matrix operator*(const Matrix &M, const Matrix &N)
218 return Matrix(M(1, 1) * N(1, 1) + M(1, 2) * N(2, 1) + M(1, 3) * N(3, 1) + M(1, 4) * N(4, 1), M(1, 1) * N(1, 2) + M(1, 2) * N(2, 2) + M(1, 3) * N(3, 2) + M(1, 4) * N(4, 2), M(1, 1) * N(1, 3) + M(1, 2) * N(2, 3) + M(1, 3) * N(3, 3) + M(1, 4) * N(4, 3), M(1, 1) * N(1, 4) + M(1, 2) * N(2, 4) + M(1, 3) * N(3, 4) + M(1, 4) * N(4, 4),
224 Matrix operator/(const Matrix &M, float s)
231 float4 Matrix::operator*(const float4 &v) const
233 const Matrix &M = *this;
242 float Matrix::det(const Matrix &M)
257 float Matrix::det(float m11)
262 float Matrix::det(float m11, float m12,
268 float Matrix::det(float m11, float m12, float m13,
277 float Matrix::det(float m11, float m12, float m13, float m14,
295 float Matrix::det(const Vector &v1, const Vector &v2, const Vector &v3)
300 float Matrix::det3(const Matrix &M)
307 float Matrix::tr(const Matrix &M)
312 Matrix &Matrix::orthogonalise()
316 Matrix &M = *this;
337 Matrix Matrix::eulerRotate(const Vector &v)
349 return Matrix(cy * cz - sxsy * sz, -cy * sz - sxsy * cz, -sy * cx,
354 Matrix Matrix::eulerRotate(float x, float y, float z)
359 Matrix Matrix::translate(const Vector &v)
361 return Matrix(1, 0, 0, v.x,
367 Matrix Matrix::translate(float x, float y, float z)
372 Matrix Matrix::scale(const Vector &v)
374 return Matrix(v.x, 0, 0,
379 Matrix Matrix::scale(float x, float y, float z)
384 Matrix Matrix::lookAt(const Vector &v)
395 return ~Matrix(x, y, z);
398 Matrix Matrix::lookAt(float x, float y, float z)