Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nvmath::Trafo Class Reference

transformation class. More...

#include <Trafo.h>

Collaboration diagram for nvmath::Trafo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

NVSG_API Trafo (void)
 Constructor: initialized to identity.
NVSG_API Mat44f getInverse (void) const
 Get the inverse of the current transformation.
NVSG_API const Vec3fgetCenter (void) const
 Get the center of rotation of this transformation.
NVSG_API const QuatfgetOrientation (void) const
 Get the rotational part of this transformation.
NVSG_API const Vec3fgetScaling (void) const
 Get the scaling part of this transformation.
NVSG_API Mat44f getMatrix (void) const
 Get the current transformation.
NVSG_API const Vec3fgetTranslation (void) const
 Get the translational part of this transformation.
NVSG_API void setCenter (const Vec3f &center)
 Set the center of ration of the transformation.
NVSG_API void setIdentity (void)
 Set the Trafo to identity.
NVSG_API void setOrientation (const Quatf &orientation)
 Set the rotational part of the transformation, using a quaternion.
NVSG_API void setScaling (const Vec3f &scaling)
 Set the scaling part of the transformation.
NVSG_API void setTranslation (const Vec3f &translation)
 Set the translational part of the transformation.

Related Functions

(Note that these are not member functions.)

Trafo lerp (float alpha, const Trafo &t0, const Trafo &t1)

Detailed Description

transformation class.

This class is used to ease transformation handling. It has an interface to rotate, scale, and translate and can produce a Mat44f that combines them.


Constructor & Destructor Documentation

nvmath::Trafo::Trafo void   )  [inline]
 

Constructor: initialized to identity.


Member Function Documentation

NVSG_API Mat44f nvmath::Trafo::getInverse void   )  const
 

Get the inverse of the current transformation.

Returns:
inverse transformation as a Mat44f

const Vec3f & nvmath::Trafo::getCenter void   )  const [inline]
 

Get the center of rotation of this transformation.

Returns:
vector that describes the center or rotation.

const Quatf & nvmath::Trafo::getOrientation void   )  const [inline]
 

Get the rotational part of this transformation.

Returns:
quaternion that describes the rotational part

const Vec3f & nvmath::Trafo::getScaling void   )  const [inline]
 

Get the scaling part of this transformation.

Returns:
vector that describes the scaling part

NVSG_API Mat44f nvmath::Trafo::getMatrix void   )  const
 

Get the current transformation.

Returns:
transformation as a Mat44f

const Vec3f & nvmath::Trafo::getTranslation void   )  const [inline]
 

Get the translational part of this transformation.

Returns:
vector that describes the translational part

void nvmath::Trafo::setCenter const Vec3f center  )  [inline]
 

Set the center of ration of the transformation.

Parameters:
center  center of rotation

void nvmath::Trafo::setIdentity void   )  [inline]
 

Set the Trafo to identity.

void nvmath::Trafo::setOrientation const Quatf orientation  )  [inline]
 

Set the rotational part of the transformation, using a quaternion.

Parameters:
orientation  rotational part of transformation

void nvmath::Trafo::setScaling const Vec3f scaling  )  [inline]
 

Set the scaling part of the transformation.

Parameters:
scaling  scaling part of transformation

void nvmath::Trafo::setTranslation const Vec3f translation  )  [inline]
 

Set the translational part of the transformation.

Parameters:
translation  translational part of transformation


Friends And Related Function Documentation

Trafo lerp float  alpha,
const Trafo t0,
const Trafo t1
[related]
 

Linear interpolation between two trafos t0 and t1. t = t0 + alpha * ( t1 - t0 )

Parameters:
alpha  interpolation parameter
t0  starting value
t1  ending value


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:40 2005 for NVSGSDK by NVIDIA