|
@@ -10,41 +10,25 @@ namespace Core {
|
|
|
|
|
|
public:
|
|
|
Matrix();
|
|
|
-
|
|
|
Matrix& unit();
|
|
|
-
|
|
|
Matrix& set(size_t index, const Vector4& v);
|
|
|
-
|
|
|
Matrix transpose();
|
|
|
-
|
|
|
const float* getValues() const;
|
|
|
-
|
|
|
Matrix& operator*=(const Matrix& other);
|
|
|
Matrix operator*(const Matrix& other) const;
|
|
|
Vector3 operator*(const Vector3& v) const;
|
|
|
-
|
|
|
Matrix& scale(const Vector3& v);
|
|
|
Matrix& scale(float f);
|
|
|
-
|
|
|
Matrix& translate(const Vector3& v);
|
|
|
Matrix& translateX(float tx);
|
|
|
Matrix& translateY(float ty);
|
|
|
Matrix& translateZ(float tz);
|
|
|
Matrix& translateTo(const Vector3& v);
|
|
|
-
|
|
|
Matrix& rotateX(float degrees);
|
|
|
Matrix& rotateY(float degrees);
|
|
|
Matrix& rotateZ(float degrees);
|
|
|
Matrix& rotate(const Quaternion& q);
|
|
|
-
|
|
|
- void toString(BufferString& s) const {
|
|
|
- s.append('[');
|
|
|
- s.append(data[0]).append(", ");
|
|
|
- s.append(data[1]).append(", ");
|
|
|
- s.append(data[2]).append(", ");
|
|
|
- s.append(data[3]);
|
|
|
- s.append("]");
|
|
|
- }
|
|
|
+ void toString(BufferString& s) const;
|
|
|
|
|
|
private:
|
|
|
Matrix& rotate(float degrees, int a, int b);
|