Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

An::Matrix22 Struct Reference

#include <Geometry.h>

List of all members.


Detailed Description

A 2x2 matrix.

Notation of values and constructor order arguments are column based:

        a c
        b d


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


The documentation for this struct was generated from the following file:
Generated on Mon Oct 24 17:30:34 2005 for liban by  doxygen 1.4.2