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
PK::Matrix22 Class Reference

#include <Matrix22.h>

Public Member Functions

 Matrix22 ()
 
 Matrix22 (float angle)
 
 Matrix22 (float col11, float col12, float col21, float col22)
 
 Matrix22 (Vector2f col1, Vector2f col2)
 
 Matrix22 (const Matrix22 &copy)
 
 ~Matrix22 ()
 
void Transpose ()
 
void Transpose (Matrix22 &mat)
 
bool Invert ()
 
Matrix22operator= (const Matrix22 &param)
 
Matrix22operator+= (const Matrix22 &param)
 
Matrix22operator-= (const Matrix22 &param)
 
Matrix22operator*= (const Matrix22 &param)
 
Matrix22operator*= (const float &param)
 
const Matrix22 operator+ (const Matrix22 &param) const
 
const Matrix22 operator- (const Matrix22 &param) const
 
const Matrix22 operator* (const Matrix22 &param) const
 
const Matrix22 operator* (const float &param) const
 
const Vector2f operator* (const Vector2f &param) const
 

Public Attributes

Vector2f Column1
 
Vector2f Column2
 

Constructor & Destructor Documentation

Matrix22::Matrix22 ( )

Constructor for the Matrix22

Matrix22::Matrix22 ( float  angle)

Constructor for the Matrix22

Constructs a rotation matrix using this angle (radians)

Matrix22::Matrix22 ( float  col11,
float  col12,
float  col21,
float  col22 
)

Constructor for the Matrix22

Value in the Column 1 Atom 1 Value in the Column 1 Atom 2 Value in the Column 2 Atom 1 Value in the Column 2 Atom 2

Matrix22::Matrix22 ( Vector2f  col1,
Vector2f  col2 
)

Constructor for the Matrix22

Value in the Column 1 Value in the Column 2

Matrix22::Matrix22 ( const Matrix22 copy)

Constructor for the Matrix22

Matrix to copy

Matrix22::~Matrix22 ( )

Destructor for the Vector2f

Member Function Documentation

bool Matrix22::Invert ( )

Invert this matrix

const Matrix22 Matrix22::operator* ( const Matrix22 param) const
Parameters
Matrix22to multiply into
const Matrix22 Matrix22::operator* ( const float &  param) const
Parameters
Scalarto multiply into
const Vector2f Matrix22::operator* ( const Vector2f param) const
  • a matrix into the vector, rotation style
Parameters
Vectorto rotate... or something else?
Matrix22 & Matrix22::operator*= ( const Matrix22 param)

*= operator for the Matrix22

Parameters
Matrixto multiple to multiply
Matrix22 & Matrix22::operator*= ( const float &  param)

*= operator for the Matrix22

Parameters
Scalarto multiple by
const Matrix22 Matrix22::operator+ ( const Matrix22 param) const
Parameters
Matrix22to add
Matrix22 & Matrix22::operator+= ( const Matrix22 param)

+= operator for the Matrix22

Parameters
Matrix22to add
const Matrix22 Matrix22::operator- ( const Matrix22 param) const
Parameters
Matrix22to subtract
Matrix22 & Matrix22::operator-= ( const Matrix22 param)

-= operator for the Matrix22

Parameters
Matrix22to subtract
Matrix22 & Matrix22::operator= ( const Matrix22 param)

= operator for the Matrix22

Parameters
Matrix22to copy
void Matrix22::Transpose ( )

Transpose this matrix

void Matrix22::Transpose ( Matrix22 mat)

Transpose this matrix

Matric to put the transpose into

Member Data Documentation

Vector2f PK::Matrix22::Column1
Vector2f PK::Matrix22::Column2

The documentation for this class was generated from the following files: