|
HERMES_DEVICE_CALLABLE | Transform () |
| Default constructor.
|
|
HERMES_DEVICE_CALLABLE | Transform (const mat4 &mat) |
| Constructs from matrix.
|
|
HERMES_DEVICE_CALLABLE | Transform (const real_t mat[4][4]) |
| Constructs from array matrix.
|
|
HERMES_DEVICE_CALLABLE | Transform (const bbox3 &bbox) |
| Constructs from geometric box.
|
|
HERMES_DEVICE_CALLABLE bbox3 | operator() (const bbox3 &b) const |
| Applies this transform to geometric box.
|
|
HERMES_DEVICE_CALLABLE point3 | operator() (const point2 &p) const |
| Applies this transform to geometric point.
|
|
HERMES_DEVICE_CALLABLE point3 | operator() (const point3 &p) const |
| Applies this transform to geometric point.
|
|
HERMES_DEVICE_CALLABLE void | operator() (const point3 &p, point3 *r) const |
| Applies this transform to geometric point.
|
|
HERMES_DEVICE_CALLABLE vec3 | operator() (const vec3 &v) const |
| Applies this transform to geometric point.
|
|
HERMES_DEVICE_CALLABLE normal3 | operator() (const normal3 &n) const |
| Applies this transform to geometric normal.
|
|
HERMES_DEVICE_CALLABLE Ray3 | operator() (const Ray3 &r) |
| Applies this transform to geometric ray.
|
|
HERMES_DEVICE_CALLABLE void | operator() (const Ray3 &r, Ray3 *ret) const |
| Applies this transform to geometric ray.
|
|
HERMES_DEVICE_CALLABLE Transform & | operator= (const Transform2 &t) |
| Copy assign from 2d transform.
|
|
HERMES_DEVICE_CALLABLE Transform | operator* (const Transform &t) const |
| Applies this transform to t.
|
|
HERMES_DEVICE_CALLABLE point3 | operator* (const point3 &p) const |
| Applies this transform to geometric vector.
|
|
HERMES_DEVICE_CALLABLE bool | operator== (const Transform &t) const |
|
HERMES_DEVICE_CALLABLE bool | operator!= (const Transform &t) const |
|
HERMES_DEVICE_CALLABLE void | reset () |
| Sets this transform back to identity.
|
|
HERMES_DEVICE_CALLABLE bool | swapsHandedness () const |
| Checks if this transform swaps coordinate system handedness.
|
|
HERMES_DEVICE_CALLABLE vec3 | getTranslate () const |
| Gets translation vector.
|
|
HERMES_DEVICE_CALLABLE bool | isIdentity () |
| Checks if this transform is identity.
|
|
HERMES_DEVICE_CALLABLE void | applyToPoint (const real_t *p, real_t *r, size_t d=3) const |
| Applies transform to point (array)
|
|
HERMES_DEVICE_CALLABLE const real_t * | c_matrix () const |
| Gets raw matrix pointer.
|
|
HERMES_DEVICE_CALLABLE const mat4 & | matrix () const |
| Gets transformation matrix.
|
|
HERMES_DEVICE_CALLABLE mat3 | upperLeftMatrix () const |
| Gets upper left matrix.
|
|
HERMES_DEVICE_CALLABLE const real_t * | operator[] (u32 row_index) const |
| Gets transformation matrix row.
|
|
HERMES_DEVICE_CALLABLE real_t * | operator[] (u32 row_index) |
| Gets transformation matrix row.
|
|
HERMES_DEVICE_CALLABLE bool | hasNaNs () const |
| Check for nans.
|
|