class Matrix2D

This class is designed to handle a 2D matrix for geometric operations

Inheritance:


Public Methods

[more] constructors
[more] ~Matrix2D()
[more]void saveXFile(XFile* file)
save the matrix
[more]void loadXFile(XFile* file)
load a matrix
[more]const char* sprint()
print the matrix into a string
[more]Matrix2D operator=(Matrix2D)
copy a matrix
[more]Matrix2D operator-()
unary minus operation
[more] Matrix2D arithmetic operations


Documentation

This class is designed to handle a 2D matrix for geometric operations

o constructors

o Matrix2D()
creates an zero 2D matrix

o Matrix2D(double a, double b, double c, double d)
creates a 2D matrix from coefficients.

the 2D matrix will be:

		[ a b 
		  c d ]
	    

o Matrix2D(const Matrix2D &)
creates a 2D matrix from another one

o ~Matrix2D()

ovoid saveXFile(XFile* file)
save the matrix

ovoid loadXFile(XFile* file)
load a matrix

oconst char* sprint()
print the matrix into a string

oMatrix2D operator=(Matrix2D)
copy a matrix

oMatrix2D operator-()
unary minus operation

o scalar multiplication
Friends:
Matrix2D operator*(int, Matrix2D)
Matrix2D operator*(double, Matrix2D)
Matrix2D operator*(Matrix2D, int)
Matrix2D operator*(Matrix2D, double)

o scalar division
Friends:
Matrix2D operator/(Matrix2D, int)
Matrix2D operator/(Matrix2D, double)

o Matrix2D arithmetic operations

oMatrix2D operator+(Matrix2D)
addition

oMatrix2D operator-(Matrix2D)
substraction

oMatrix2D& operator*=(double)
scalar multiplication

oMatrix2D& operator/=(double)
scalar division

oMatrix2D& operator+=(Matrix2D)
increment

oMatrix2D& operator-=(Matrix2D)
decrement


Direct child classes:
RotationMatrix2D
Author:
Sebastien Marcel (marcel@idiap.ch) Dan Sunday (http://www.softsurfer.com/)
Version:
2.0 Fri 15 Jul 2005 11:35:19 AM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.