Open PaperOpt
Transform Class Reference

#include <Transform.h>

List of all members.

Public Member Functions

 Transform (void)
 ~Transform (void)
void reset (void)
void AddChangeOfBasis (const V3< double > &x, const V3< double > &y)
void AddChangeOfBasis (const V3< double > &x, const V3< double > &y, const V3< double > &z)
void AddScaling (double x, double y, double z)
void AddRotationX (double ang)
const V3< double > ApplyTransform (const V3< double > &v) const
const V3< double > ApplyInvTransform (const V3< double > &v) const

Detailed Description

Class used to perform vector space transforms.

Performs coordinate transforms. Makes code more readable. =)

#include "transform.h"


Constructor & Destructor Documentation

Transform::Transform ( void  )

Default constructor.

Here is the call graph for this function:

Transform::~Transform ( void  ) [inline]

Destructor.


Member Function Documentation

void Transform::AddChangeOfBasis ( const V3< double > &  x,
const V3< double > &  y 
)

Adds a change of basis to transform.

Takes two orthonormal vectors as parameters and forms an orthonormal basis. No checks are done.

Parameters:
xFirst vector in new basis.
ySecond vector in new basis.

Here is the call graph for this function:

Here is the caller graph for this function:

void Transform::AddChangeOfBasis ( const V3< double > &  x,
const V3< double > &  y,
const V3< double > &  z 
)

Adds a change of basis to transform.

Takes three orthonormal vectors as parameters and adds this basis to transform. No checks are done.

Parameters:
xFirst vector in new basis.
ySecond vector in new basis.
zThird vector in new basis.

Here is the call graph for this function:

void Transform::AddRotationX ( double  ang)

Adds a rotation about the x axix to transform.

Parameters:
angAngle in radians for rotation.

Here is the call graph for this function:

Here is the caller graph for this function:

void Transform::AddScaling ( double  x,
double  y,
double  z 
)

Adds a scaling to transform.

Takes three scaling parameters.

Parameters:
xScale factor for x axis.
yScale factor for y axis.
zScale factor for z axis.

Here is the call graph for this function:

Here is the caller graph for this function:

const V3< double > Transform::ApplyInvTransform ( const V3< double > &  v) const

Performs the inverse transform on a vector.

NB: This only works if the transform is orthonormal.

Parameters:
vInput vector.

return V3 Transformed vector.

Here is the caller graph for this function:

const V3< double > Transform::ApplyTransform ( const V3< double > &  v) const

Performs the transform on a vector.

Parameters:
vInput vector.

return V3 Transformed vector.

Here is the caller graph for this function:

void Transform::reset ( void  )

Resets the transform.

Here is the call graph for this function:

Here is the caller graph for this function:


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