Lines Matching refs:Matrix3

31 class Matrix3 {
33 static const Matrix3 ZERO;
34 static const Matrix3 IDENTITY;
35 Matrix3();
36 Matrix3(T m00, T m01, T m02, T m10, T m11, T m12, T m20, T m21, T m22);
37 Matrix3(std::vector<T> M);
39 Matrix3(const Matrix3& matrix) noexcept = default;
41 explicit Matrix3(const T* v);
43 ~Matrix3();
49 Matrix3 Inverse() const;
50 Matrix3 Multiply(const Matrix3& other) const;
52 Matrix3 operator+(const Matrix3& other) const;
53 Matrix3 operator-(const Matrix3& other) const;
54 Matrix3 operator-() const;
55 Matrix3 operator*(const Matrix3& other) const;
57 Matrix3 operator*(T scale) const;
59 Matrix3& operator=(const Matrix3& other);
60 Matrix3& operator+=(const Matrix3& other);
61 Matrix3& operator-=(const Matrix3& other);
62 Matrix3& operator*=(const Matrix3& other);
63 Matrix3& operator*=(T scale);
64 bool operator==(const Matrix3& other) const;
65 bool operator!=(const Matrix3& other) const;
66 bool IsNearEqual(const Matrix3& other, T threshold = std::numeric_limits<T>::epsilon()) const;
70 Matrix3 Transpose() const;
71 Matrix3 Translate(const Vector2<T>& vec) const;
72 Matrix3 Rotate(T angle) const;
73 Matrix3 Rotate(T angle, T pivotx, T pivoty) const;
74 Matrix3 Scale(const Vector2<T>& vec) const;
75 Matrix3 Scale(const Vector2<T>& vec, T pivotx, T pivoty) const;
76 Matrix3 ShearX(T y) const;
77 Matrix3 ShearY(T x) const;
83 typedef Matrix3<float> Matrix3f;
84 typedef Matrix3<double> Matrix3d;
87 const Matrix3<T> Matrix3<T>::ZERO(0, 0, 0, 0, 0, 0, 0, 0, 0);
90 const Matrix3<T> Matrix3<T>::IDENTITY(1, 0, 0, 0, 1, 0, 0, 0, 1);
93 Matrix3<T>::Matrix3() in Matrix3() function
97 Matrix3<T>::Matrix3(T m00, T m01, T m02, T m10, T m11, T m12, T m20, T m21, T m22) in Matrix3() function
113 Matrix3<T>::Matrix3(std::vector<T> matrix) in Matrix3() function
116 Matrix3(); in Matrix3()
125 Matrix3<T>::Matrix3(const T* v) in Matrix3() function
131 Matrix3<T>::~Matrix3() in ~Matrix3()
135 T Matrix3<T>::Trace() const in Trace()
145 int Matrix3<T>::Index(int row, int col) in Index()
151 void Matrix3<T>::SetIdentity() in SetIdentity()
157 void Matrix3<T>::SetZero() in SetZero()
163 bool Matrix3<T>::IsIdentity() const in IsIdentity()
171 Matrix3<T> Matrix3<T>::Inverse() const in Inverse()
175 return Matrix3<T>(*this); in Inverse()
191 return Matrix3<T>(iX, iY, iZ, jX, jY, jZ, kX, kY, kZ); in Inverse()
195 Matrix3<T> Matrix3<T>::Multiply(const Matrix3<T>& other) const in Multiply()
197 Matrix3<T> rMulti; in Multiply()
216 Matrix3<T> Matrix3<T>::operator+(const Matrix3<T>& other) const
218 Matrix3<T> rMat3Add;
236 Matrix3<T> Matrix3<T>::operator-(const Matrix3<T>& other) const
242 Matrix3<T> Matrix3<T>::operator-() const
244 Matrix3<T> rMat3Sub;
261 Matrix3<T> Matrix3<T>::operator*(const Matrix3<T>& other) const
267 Vector3<T> Matrix3<T>::operator*(const Vector3<T>& other) const
281 Matrix3<T> Matrix3<T>::operator*(T scale) const
283 Matrix3<T> rMulti;
299 T* Matrix3<T>::operator[](int col)
305 Matrix3<T>& Matrix3<T>::operator=(const Matrix3<T>& other)
322 Matrix3<T>& Matrix3<T>::operator+=(const Matrix3<T>& other)
340 Matrix3<T>& Matrix3<T>::operator-=(const Matrix3<T>& other)
358 Matrix3<T>& Matrix3<T>::operator*=(const Matrix3<T>& other)
364 Matrix3<T>& Matrix3<T>::operator*=(T scale)
379 bool Matrix3<T>::operator==(const Matrix3& other) const
390 bool Matrix3<T>::operator!=(const Matrix3& other) const
396 bool Matrix3<T>::IsNearEqual(const Matrix3& other, T threshold) const in IsNearEqual()
405 inline T* Matrix3<T>::GetData() in GetData()
411 const T* Matrix3<T>::GetConstData() const in GetConstData()
417 T Matrix3<T>::Determinant() const in Determinant()
426 Matrix3<T> Matrix3<T>::Transpose() const in Transpose()
428 Matrix3<T> rTrans; in Transpose()
443 Matrix3<T> Matrix3<T>::Translate(const Vector2<T>& vec) const in Translate()
445 Matrix3<T> rTrans(*this); in Translate()
455 Matrix3<T> Matrix3<T>::Rotate(T angle) const in Rotate()
461 Matrix3<T> rRotate(*this); in Rotate()
474 Matrix3<T> Matrix3<T>::Rotate(T angle, T pivotx, T pivoty) const in Rotate()
482 Matrix3<T> rRotate(*this); in Rotate()
499 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& vec) const in Scale()
501 Matrix3<T> rScale(*this); in Scale()
514 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& vec, T pivotx, T pivoty) const in Scale()
519 Matrix3<T> rScale(*this); in Scale()
536 Matrix3<T> Matrix3<T>::ShearX(T y) const in ShearX()
538 Matrix3<T> rShear(Matrix3<T>::IDENTITY); in ShearX()
544 Matrix3<T> Matrix3<T>::ShearY(T x) const in ShearY()
546 Matrix3<T> rShear(Matrix3<T>::IDENTITY); in ShearY()