Physics4K  2013-06-04
Physics4K is the next great evolution in 2D physics engines. built upon the C++ Game Framework, it is going to take the next generation gaming world by storm.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Matrix22.h
Go to the documentation of this file.
1 // Filename: Matrix22.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 //Includes
9 #include "PKInclude.h"
10 #include <math.h>
11 #include "Vector2f.h"
12 
13 namespace PK
14 {
16  {
17  public:
18  Matrix22();
19  Matrix22(float angle);
20  Matrix22(float col11, float col12, float col21, float col22);
21  Matrix22(Vector2f col1, Vector2f col2);
22  Matrix22(const Matrix22& copy);
23  ~Matrix22();
24 
25  void Transpose();
26  void Transpose(Matrix22& mat);
27  bool Invert();
28 
29  Matrix22& operator=(const Matrix22 &param);
30  Matrix22& operator+= (const Matrix22 &param);
31  Matrix22& operator-= (const Matrix22 &param);
32  Matrix22& operator*= (const Matrix22 &param);
33  Matrix22& operator*= (const float &param);
34  const Matrix22 operator+ (const Matrix22 &param) const ;
35  const Matrix22 operator- (const Matrix22 &param)const ;
36  const Matrix22 operator* (const Matrix22 &param)const ;
37  const Matrix22 operator* (const float &param)const ;
38 
39  const Vector2f operator* (const Vector2f &param)const ;
40 
41  public:
44  };
45 }