matrix2.h File Reference
 
 
 
matrix2.h File Reference
#include "GeomExport.h"
#include "maxheap.h"
#include "ioapi.h"
#include "point2.h"
#include "point3.h"
#include "strbasic.h"
#include <iosfwd>

Classes

class   Matrix2

Functions

Matrix2  RotateMatrix (float angle)
Matrix2  TransMatrix (const Point2 &p)
Matrix2  ScaleMatrix (const Point2 &s)
Matrix2  Inverse (const Matrix2 &M)
Point2  operator* (const Matrix2 &A, const Point2 &V)
Point2  operator* (const Point2 &V, const Matrix2 &A)
Point2  VectorTransform (const Matrix2 &M, const Point2 &V)
M_STD_OSTREAM &  operator<< (M_STD_OSTREAM &s, const Matrix2 &A)

Function Documentation

Matrix2 RotateMatrix ( float  angle )
Remarks:
Builds an identity matrix and sets the rotation components based on the specified angle.
Parameters:
float angle

Specifies the angle of rotation.
Returns:
A new Matrix2 object with the specified rotation angle.
Matrix2 TransMatrix ( const Point2 p )
Remarks:
Builds an identity matrix and sets the specified translation components.
Parameters:
const Point2& p

Specifies the translation.
Returns:
A new Matrix2 object with the specified translation.
Matrix2 ScaleMatrix ( const Point2 s )
Remarks:
Builds an identity matrix and sets the specified scaling components.
Parameters:
const Point2& s

Specifies the scale factors.
Returns:
A new Matrix2 object with the specified scale.
Matrix2 Inverse ( const Matrix2 M )
Remarks:
Returns the inverse of the specified Matrix2.
Parameters:
const Matrix2& M

Specifies the matrix to return the inverse of.
Returns:
The inverse of the specified Matrix2.
Point2 operator* ( const Matrix2 A,
const Point2 V 
)
Remarks:
Transforms the specified Point2 with the specified Matrix2.
Parameters:
const Matrix2& A

The matrix to transform the point with.

const Point2& V

The point to transform.
Returns:
The transformed Point2.
Point2 operator* ( const Point2 V,
const Matrix2 A 
)
Remarks:
Transforms the specified Point2 with the specified Matrix2.
Parameters:
const Point2& V

The point to transform. const Matrix2& A

The matrix to transform the point with.

Returns:
The transformed Point2.
Point2 VectorTransform ( const Matrix2 M,
const Point2 V 
)
Remarks:
This method transforms a 2D point by a 2x3 matrix. This is analogous to the 3D case.
Parameters:
const Matrix2& M

The matrix to transform the point with.

const Point2& V

The point to transform.
Returns:
The transformed Point2.
M_STD_OSTREAM& operator<< ( M_STD_OSTREAM &  s,
const Matrix2 A 
)