#include <Geometry.h>
Notation of values and constructor order arguments are column based:
Public Member Functions | |
Matrix22 () | |
Constructor, create matrix with 0. | |
Matrix22 (double a, double b, double c, double d) | |
Constructor, create matrix with a b c d. | |
Matrix22 (double alpha) | |
Constructor, create rotation matrix of angle alpha in radian. | |
Matrix22 (double array[4]) | |
Constructor, create matrix with array[0] array[1] array[2] array[3]. | |
void | operator+= (const Matrix22 &v) |
Add matrix v component by component. | |
void | operator-= (const Matrix22 &v) |
Substract matrix v component by component. | |
void | operator *= (double f) |
Multiply each component by scalar f. | |
void | operator/= (double f) |
Divive each component by scalar f. | |
Matrix22 | operator+ (const Matrix22 &v) const |
Add matrix v component by component and return the resulting matrix. | |
Matrix22 | operator- (const Matrix22 &v) const |
Subtract matrix v component by component and return the resulting matrix. | |
Matrix22 | operator * (double f) const |
Multiply each component by scalar f and return the resulting matrix. | |
Matrix22 | operator/ (double f) const |
Divide each component by scalar f and return the resulting matrix. | |
Point | operator * (const Point &v) |
Multiply vector v and return the resulting vector. | |
Public Attributes | |
double | a |
components | |
double | b |
components | |
double | c |
components | |
double | d |
components |