| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- $#include "Matrix3x4.h"
- class Matrix3x4
- {
- Matrix3x4();
- Matrix3x4(const Matrix3x4& matrix);
- Matrix3x4(const Matrix3& matrix);
- Matrix3x4(const Matrix4& matrix);
- Matrix3x4(float v00, float v01, float v02, float v03,
- float v10, float v11, float v12, float v13,
- float v20, float v21, float v22, float v23);
- Matrix3x4(const Vector3& translation, const Quaternion& rotation, float scale);
- Matrix3x4(const Vector3& translation, const Quaternion& rotation, const Vector3& scale);
- ~Matrix3x4();
-
- bool operator == (const Matrix3x4& rhs) const;
-
- Vector3 operator * (const Vector3& rhs) const;
- Vector3 operator * (const Vector4& rhs) const;
-
- Matrix3x4 operator + (const Matrix3x4& rhs) const;
- Matrix3x4 operator - (const Matrix3x4& rhs) const;
-
- Matrix3x4 operator * (float rhs) const;
- Matrix3x4 operator * (const Matrix3x4& rhs) const;
- Matrix4 operator * (const Matrix4& rhs) const;
-
- void SetTranslation(const Vector3& translation);
- void SetRotation(const Matrix3& rotation);
- void SetScale(const Vector3& scale);
- void SetScale(float scale);
-
- Matrix3 ToMatrix3() const;
- Matrix4 ToMatrix4() const;
- Matrix3 RotationMatrix() const;
- Vector3 Translation() const;
- Quaternion Rotation() const;
- Vector3 Scale() const;
-
- bool Equals(const Matrix3x4& rhs) const;
-
- void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const;
- Matrix3x4 Inverse() const;
-
- String ToString() const;
-
- float m00_ @ m00;
- float m01_ @ m01;
- float m02_ @ m02;
- float m03_ @ m03;
- float m10_ @ m10;
- float m11_ @ m11;
- float m12_ @ m12;
- float m13_ @ m13;
- float m20_ @ m20;
- float m21_ @ m21;
- float m22_ @ m22;
- float m23_ @ m23;
-
- static const Matrix3x4 ZERO;
- static const Matrix3x4 IDENTITY;
- };
|