Matrix - // copy constructor c ~Matrix (void); //...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef __MATRIX__ #define __MATRIX__ # // this file contains the declaration of the class Matrix // Matrix is a 4 x 4 square matrix that is used to represent affine transformations // we don't need a general m x n matrix / //----------------------------------------- class Matrix / class Matrix { c public: p double m[4][4]; // elements e Matrix(void); // default constructor d Matrix(const Matrix& mat);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // copy constructor c ~Matrix (void); // destructor d Matrix& // assignment operator operator= (const Matrix& rhs); o Matrix // multiplication of two matrices operator* (const Matrix& mat) const; o Matrix // divsion by a double operator/ (const double d); o void // set to the identity matrix set_identity(void); s }; } #endif #...
View Full Document

Ask a homework question - tutors are online