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

pdf::util::CMatrix2D Class Reference

class represent a 3x3 matrix for 2D transformation More...

#include <Matrix2D.hh>

List of all members.

Public Types

Public Methods

Private Attributes

Static Private Attributes


Detailed Description

class represent a 3x3 matrix for 2D transformation

the class represent a 3x3 matrix used for 2D transformation.


Member Function Documentation

void pdf::util::CMatrix2D::LoadIdentity  
 

set the matrix to an identity matrix.

00053 {
00054     m_matrix[1] = m_matrix[2] = m_matrix[4] = m_matrix[5] = 0.0f ;
00055     m_matrix[0] = m_matrix[3] = 1.0f ;
00056 }

std::ostream & pdf::util::CMatrix2D::Print std::ostream &    os const
 

print the matrix to an output stream. called by operator<<

Parameters:
os  the output stream
Returns:
the output stream, i.e. os.

00074 {
00075     using namespace std ;
00076     copy( begin( ), end( ), ostream_iterator<double>( os, " " ) ) ;
00077     return os ;
00078 }


The documentation for this class was generated from the following files:
Generated on Sun Feb 2 09:17:37 2003 for libpdf++ by doxygen1.2.16