![]() |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
3 x 3 matrix to be used for math. More...
#include <mat3.h>
Public Member Functions | |
Mat3 () | |
Default empty constructor that sets X and Y to 0. | |
Mat3 (double a11, double a12, double a13, double a21, double a22, double a23, double a31, double a32, double a33) | |
Constructor that sets up a new vector. | |
Mat3 | operator- (const Mat3 &right) |
Overload of subtraction operator. More... | |
Mat3 | operator- () |
Overload of negation operator. More... | |
Mat3 | operator+ (const Mat3 &right) |
Overload of addition operator. More... | |
Mat3 | operator* (const rune::Mat3 &right) |
Overload of multiplication operator. More... | |
Mat3 | operator* (double scalar) |
Overload of multiplication operator for a scalar on the left. More... | |
rune::Vec3 | operator* (const rune::Vec3 &right) |
Overload of multiplication operator for a rune::Mat3. More... | |
Mat3 | operator/ (const Mat3 &right) |
Overload of division operator. More... | |
Mat3 & | operator-= (const Mat3 &right) |
Overload of -= operator. More... | |
Mat3 & | operator+= (const Mat3 &right) |
Overload of += operator. More... | |
Mat3 & | operator+= (const double scalar) |
Overload of += operator for scalar. More... | |
Mat3 & | operator*= (const Mat3 &right) |
Overload of *= operator. More... | |
Mat3 & | operator*= (const double right) |
Overload of *= operator for a scalar multiplier. More... | |
Mat3 & | operator/= (const Mat3 &right) |
Overload of *= operator. More... | |
Mat3 & | operator/= (const double right) |
Overload of *= operator for a scalar multiplier. More... | |
bool | operator== (const Mat3 &right) |
Overload of comparator operator. More... | |
bool | operator!= (const Mat3 &right) |
Overload of != operator. More... | |
Mat3 | operator/ (double scalar) |
Overload of division operator. More... | |
Mat3 | invert () |
Inversion of the matrix. More... | |
double | determinant () |
Determinant of the matrix. More... | |
double * | operator[] (int index) |
Array like accessing of elements. More... | |
std::ostream & | operator<< (std::ostream &os, const rune::Mat3 &mat) |
Friends | |
RUNE_ENGINE std::ostream & | operator<< (std::ostream &os, const Mat3 &vector) |
Overload of stream operator for printing. | |
3 x 3 matrix to be used for math.
double rune::Mat3::determinant | ( | ) |
Determinant of the matrix.
rune::Mat3 rune::Mat3::invert | ( | ) |
Inversion of the matrix.
bool rune::Mat3::operator!= | ( | const Mat3 & | right | ) |
Overload of != operator.
right | The rune::Mat3 to compare to. |
rune::Mat3 rune::Mat3::operator* | ( | const rune::Mat3 & | right | ) |
Overload of multiplication operator.
right | The matrix to be multiplied by. |
rune::Vec3 rune::Mat3::operator* | ( | const rune::Vec3 & | vec | ) |
Overload of multiplication operator for a rune::Mat3.
vec | The vector to be multiplied with. |
rune::Mat3 rune::Mat3::operator* | ( | double | scalar | ) |
Overload of multiplication operator for a scalar on the left.
scalar | The scalar to be multiplied by. |
rune::Mat3 & rune::Mat3::operator*= | ( | const double | right | ) |
Overload of *= operator for a scalar multiplier.
right | The matrix to multiply by. |
rune::Mat3 & rune::Mat3::operator*= | ( | const Mat3 & | right | ) |
Overload of *= operator.
right | The matrix to be multiplied by. |
rune::Mat3 rune::Mat3::operator+ | ( | const Mat3 & | right | ) |
Overload of addition operator.
right | The matrix to be added. |
rune::Mat3 & rune::Mat3::operator+= | ( | const double | scalar | ) |
Overload of += operator for scalar.
scalar | The scalar to be added. |
rune::Mat3 & rune::Mat3::operator+= | ( | const Mat3 & | right | ) |
Overload of += operator.
right | The matrix to be added. |
rune::Mat3 rune::Mat3::operator- | ( | ) |
Overload of negation operator.
rune::Mat3 rune::Mat3::operator- | ( | const Mat3 & | right | ) |
Overload of subtraction operator.
right | The matrix to be subtracted. |
rune::Mat3 & rune::Mat3::operator-= | ( | const Mat3 & | right | ) |
Overload of -= operator.
right | The matrix to be subtracted by. |
rune::Mat3 rune::Mat3::operator/ | ( | const Mat3 & | right | ) |
Overload of division operator.
right | The matrix to be divided by. |
rune::Mat3 rune::Mat3::operator/ | ( | double | scalar | ) |
Overload of division operator.
scalar | The scalar value to be multiplied by. |
rune::Mat3 & rune::Mat3::operator/= | ( | const double | right | ) |
Overload of *= operator for a scalar multiplier.
right | The scalar to be divided by. |
rune::Mat3 & rune::Mat3::operator/= | ( | const Mat3 & | right | ) |
Overload of *= operator.
right | The matrix to be divided by. |
std::ostream & operator<< | ( | std::ostream & | os, |
const rune::Mat3 & | mat | ||
) |
os | Output stream that the vector should be printed to. |
mat | mat to be printed. |
bool rune::Mat3::operator== | ( | const Mat3 & | right | ) |
Overload of comparator operator.
right | The rune::Mat3 to compare to. |
double * rune::Mat3::operator[] | ( | int | index | ) |
Array like accessing of elements.
index | The element to be accessed. |