#include <Trafo.h>
Collaboration diagram for nvmath::Trafo:
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 Vec3f & | getCenter (void) const |
Get the center of rotation of this transformation. | |
NVSG_API const Quatf & | getOrientation (void) const |
Get the rotational part of this transformation. | |
NVSG_API const Vec3f & | getScaling (void) const |
Get the scaling part of this transformation. | |
NVSG_API Mat44f | getMatrix (void) const |
Get the current transformation. | |
NVSG_API const Vec3f & | getTranslation (void) const |
Get the translational part of this transformation. | |
NVSG_API void | setCenter (const Vec3f ¢er) |
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) |
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: initialized to identity.
|
|
Get the inverse of the current transformation.
|
|
Get the center of rotation of this transformation.
|
|
Get the rotational part of this transformation.
|
|
Get the scaling part of this transformation.
|
|
Get the current transformation.
|
|
Get the translational part of this transformation.
|
|
Set the center of ration of the transformation.
|
|
Set the Trafo to identity.
|
|
Set the rotational part of the transformation, using a quaternion.
|
|
Set the scaling part of the transformation.
|
|
Set the translational part of the transformation.
|
|
Linear interpolation between two trafos t0 and t1. t = t0 + alpha * ( t1 - t0 )
|