Classes | Functions

matrix2.h File Reference

#include "GeomExport.h"
#include "maxheap.h"
#include "ioapi.h"
#include "point2.h"
#include "point3.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class   Matrix2

Functions

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

Function Documentation

GEOMEXPORT 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.
GEOMEXPORT 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.
GEOMEXPORT 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.
GEOMEXPORT 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.
GEOMEXPORT 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.
GEOMEXPORT 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.
GEOMEXPORT 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.
GEOMEXPORT std::ostream& operator<< ( std::ostream &  s,
const Matrix2 A 
)