pgl
PrimitiveOpenGL3Dprimitivelibrary
|
Homogeneous coordinate transform. More...
#include <math.h>
Public Member Functions | |
Transform (double _data[16]) | |
Transform (const Vector3 &rotation, const Vector3 &translation) | |
Specifies transform through intrinsict roll-pitch-yaw and translation. | |
Transform (const Vector3 &axis, const double &angle, const Vector3 &translation) | |
Specifies transform through axis-angle and translation. | |
void | set (double _data[16]) |
void | set (const Vector3 &axis, const double &angle, const Vector3 &translation) |
void | set (const Vector3 &rotation, const Vector3 &translation) |
double & | operator[] (const unsigned int idx) |
double | operator[] (const unsigned int idx) const |
Transform | operator* (const Transform &rhs) const |
Vector3 | operator* (const Vector3 &rhs) const |
Public Attributes | |
union { | |
double data [16] | |
struct { | |
double __dummy [12] | |
double x | |
double y | |
double z | |
double __dummy2 | |
} | |
}; | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Transform &obj) |
Homogeneous coordinate transform.
Column-major storage order. The translation can be addressed through either
or