Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

anoid::simple::Matrix Class Reference

#include <matrix.hh>

Collaboration diagram for anoid::simple::Matrix:

Collaboration graph
[legend]
List of all members.

Public Methods

 Matrix ()
 Matrix (const Vector &v)
 Matrix (const Vector &a, const Vector &b, const Vector &c)
 Matrix (double m[4][4])
 Matrix (Matrix &m)
 Matrix (std::string &s)
 Matrix (char *s)
Vector operator * (const Vector &v) const

Private Methods

void init (const char *s)
void zero ()
void identity ()

Private Attributes

double _matrix [4][4]

Constructor & Destructor Documentation

anoid::simple::Matrix::Matrix  
 

Inits this matrix to the zero matrix

Definition at line 31 of file matrix.cc.

References zero().

anoid::simple::Matrix::Matrix const Vector   v
 

Does the tilde operator of a vector and stores the result in this matrix.

Parameters:
v  the vector to "tilde"

Definition at line 35 of file matrix.cc.

References _matrix, anoid::simple::Point::getX(), anoid::simple::Point::getY(), and anoid::simple::Point::getZ().

anoid::simple::Matrix::Matrix const Vector   a,
const Vector   b,
const Vector   c
 

Inits this matrix using three 3D column vectors

Parameters:
a  the first 3D vector
b  the first 3D vector
c  the first 3D vector

Definition at line 42 of file matrix.cc.

anoid::simple::Matrix::Matrix double    m[4][4]
 

anoid::simple::Matrix::Matrix Matrix &    m
 

anoid::simple::Matrix::Matrix std::string &    s
 

anoid::simple::Matrix::Matrix char *    s
 


Member Function Documentation

void anoid::simple::Matrix::identity   [private]
 

Definition at line 24 of file matrix.cc.

References _matrix.

void anoid::simple::Matrix::init const char *    s [private]
 

Definition at line 6 of file matrix.cc.

References _matrix, and zero().

Vector anoid::simple::Matrix::operator * const Vector   v const
 

void anoid::simple::Matrix::zero   [private]
 

Definition at line 17 of file matrix.cc.

References _matrix.

Referenced by init(), and Matrix().


Member Data Documentation

double anoid::simple::Matrix::_matrix[4][4] [private]
 

Definition at line 21 of file matrix.hh.

Referenced by identity(), init(), Matrix(), and zero().


The documentation for this class was generated from the following files:
Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen