My Project
Public Member Functions | Public Attributes | List of all members
RotationAndTranslation Class Reference

#include <geometry.h>

Public Member Functions

 RotationAndTranslation (const Matrix4D &m)
 
RotationAndTranslation operator- (void) const
 
RotationAndTranslation operator* (double scale) const
 
RotationAndTranslationoperator*= (double scale)
 
RotationAndTranslation operator/ (double scale) const
 
RotationAndTranslationoperator/= (double scale)
 
RotationAndTranslation operator+ (const RotationAndTranslation &q) const
 
RotationAndTranslationoperator+= (const RotationAndTranslation &q)
 
RotationAndTranslation operator- (const RotationAndTranslation &q) const
 
RotationAndTranslationoperator-= (const RotationAndTranslation &q)
 

Public Attributes

Matrix3D rotation
 
Point3D translate
 

Detailed Description

This class represents a transformation by a 3x3 matrix and the translation

Constructor & Destructor Documentation

RotationAndTranslation::RotationAndTranslation ( const Matrix4D m)

This constructor sets the rotation matrix and translation vector from the transformation matrix

Member Function Documentation

RotationAndTranslation RotationAndTranslation::operator* ( double  scale) const

This method scales the transformation parameters.

RotationAndTranslation & RotationAndTranslation::operator*= ( double  scale)

This method scales the current transformation parameters by a constant factor.

RotationAndTranslation RotationAndTranslation::operator+ ( const RotationAndTranslation q) const

This method adds two sets of transformation parameters and returns their sum.

RotationAndTranslation & RotationAndTranslation::operator+= ( const RotationAndTranslation q)

This method adds a set of transformation parameters to the current transformation parameters.

RotationAndTranslation RotationAndTranslation::operator- ( void  ) const

This method returns the negative of the transformation parameters

RotationAndTranslation RotationAndTranslation::operator- ( const RotationAndTranslation q) const

This method subtracts two sets of transformation parameters and returns their difference.

RotationAndTranslation & RotationAndTranslation::operator-= ( const RotationAndTranslation q)

This method subtracts a set of transformation parameters from the current transformation parameters.

RotationAndTranslation RotationAndTranslation::operator/ ( double  scale) const

This method divides the coefficients of a the transformation parameters by a constant factor.

RotationAndTranslation & RotationAndTranslation::operator/= ( double  scale)

This method divides the coefficients of the current transformation parameters by a constant factor.

Member Data Documentation

Matrix3D RotationAndTranslation::rotation

The rotation

Point3D RotationAndTranslation::translate

The translation vector


The documentation for this class was generated from the following files: