Home | Hierarchy | Members | Alphabetical | Related Pages |
#include <transformator.h>
Public Member Functions | |
Transformator () | |
void | loadIdentity () |
void | translate (float x, float y, float z) |
void | rotate (float rad, float x, float y, float z) |
void | scale (float x, float y, float z) |
void | scale (float s) |
void | postMultMatrix (const float *m) |
void | preMultMatrix (const float *m) |
void | loadMatrix (const float *m) |
operator const float * () const | |
void | getMatrix (float *m) const |
void | transform (const float *src, float *dst) const |
Transformator | inverseTranspose () const |
float & | element (const unsigned short i, const unsigned short j) |
float | element (const unsigned short i, const unsigned short j) const |
Static Public Member Functions | |
Transformator | translation (float x, float y, float z) |
Transformator | rotation (float rad, float x, float y, float z) |
Transformator | scaling (float x, float y, float z) |
Transformator | scaling (float s) |
Friends | |
std::ostream & | operator<< (std::ostream &s, const wrl::Transformator &t) |
bool | operator== (const Transformator &t0, const Transformator &t1) |
bool | operator!= (const Transformator &t0, const Transformator &t1) |
bool | operator< (const Transformator &t0, const Transformator &t1) |
float M[3] = { 0.5,1.2,0.7 }; float N[3] = { 0.5,1.2,0.7 }; Transformator t0; Transformator t1; t0.rotate(0.3f,1.0f,1.0f,1.0f); t1.scale(2.0f,-1.0f,3.0f); t0.transform(M); t1.transform(M); Transformator t2; t2.scale(2.0f,-1.0f,3.0f); t2.rotate(0.3f,1.0f,1.0f,1.0f); t2.transform(N);
|
Make an indentity transformator |
|
Return element on line |
|
Return element on line |
|
Copy to |
|
Returns a Transformator whose matrix is the inverse transpose of this one. |
|
Reset the matrix to identity transformation. |
|
Loads the |
|
Returns the internal matrix. Convenient alternative to getMAtrix(), especially to work with postMultMatrix and preMultMatrix~: Transformator t; // .... Transformator t2; // ... t2.postMultMatrix(t1); // valid code |
|
Post multiply the matrix. So M <- M*m. In other words, when transforming a vertex, m will be performed before the current transformation takes place. You can use a Transformator as argument (see operator const float*()). |
|
Pre multiply the matrix. So M <- m*M. In other words, when transforming a vertex, m will be performed after the current transformation takes place. You can use a Transformator as argument (see operator const float*()). |
|
Add a translation around axis ( |
|
Returns a transformation object for rotation. Provided for convenience. |
|
Provided for convenience. Equivalent to |
|
Add a scaling. |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns a transformation object for scaling. |
|
Returns a transformation object for scaling. Provided for convenience. |
|
Apply the transformation to 3 components point |
|
Add a translation of ( |
|
Returns a transformation object for translation. |
|
|
|
|
|
|
|
|
Generated on 24 Feb 2005 with version 1.3.9.1. |