Matrix2.pkg 1023 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. $#include "Math/Matrix2.h"
  2. class Matrix2
  3. {
  4. Matrix2();
  5. Matrix2(const Matrix2& matrix);
  6. Matrix2(float v00, float v01, float v02,
  7. float v10, float v11, float v12,
  8. float v20, float v21, float v22);
  9. ~Matrix2();
  10. bool operator ==(const Matrix2& rhs) const;
  11. Vector2 operator * (const Vector2& rhs) const;
  12. Matrix2 operator + (const Matrix2& rhs) const;
  13. Matrix2 operator - (const Matrix2& rhs) const;
  14. Matrix2 operator * (float rhs) const;
  15. Matrix2 operator * (const Matrix2& rhs) const;
  16. void SetScale(const Vector2& scale);
  17. void SetScale(float scale);
  18. Vector2 Scale() const;
  19. Matrix2 Transpose() const;
  20. Matrix2 Scaled(const Vector2& scale) const;
  21. bool Equals(const Matrix2& rhs) const;
  22. Matrix2 Inverse() const;
  23. String ToString() const;
  24. float m00_ @ m00;
  25. float m01_ @ m01;
  26. float m10_ @ m10;
  27. float m11_ @ m11;
  28. static const Matrix2 ZERO;
  29. static const Matrix2 IDENTITY;
  30. };