|
Hermes
|
Represents a 2-dimensional transformation. More...
#include <transform.h>
Static Public Member Functions | |
| static HERMES_DEVICE_CALLABLE Transform2 | scale (const vec2 &s) |
| Creates scale transform. | |
| static HERMES_DEVICE_CALLABLE Transform2 | rotate (real_t angle) |
| Creates rotation transform. | |
| static HERMES_DEVICE_CALLABLE Transform2 | translate (const vec2 &v) |
| Creates translation transform. | |
| static MemoryDumper::RegionLayout | memoryDumpLayout () |
| Gets memory layout. | |
Friends | |
| Transform2 | inverse (const Transform2 &t) |
| Gets inverse transform from t. | |
Represents a 2-dimensional transformation.
| HERMES_DEVICE_CALLABLE hermes::Transform2::Transform2 | ( | const mat3 & | mat | ) |
Constructs from matrix.
| mat |
| HERMES_DEVICE_CALLABLE hermes::Transform2::Transform2 | ( | const bbox2 & | bbox | ) |
Constructs from bounding box.
| bbox |
|
inline |
Extracts rotation matrix.
|
inline |
Extracts scale vector.
|
inline |
Extracts translation vector.
|
inlinestatic |
Gets memory layout.
|
inline |
Applies this transform to geometric box.
| b |
|
inline |
Applies this transform to geometric point.
| p |
|
inline |
Applies this transform to geometric point.
| p | |
| r |
|
inline |
Applies this transform to geometric ray.
| r |
|
inline |
Applies this transform to geometric vector.
| v |
|
inline |
Applies this transform to geometric vector.
| v | |
| r |
|
inline |
Applies this transform to another transform.
| t |
|
inline |
Gets transform matrix row.
| row_index |
|
inline |
Gets transform matrix row.
| row_index |
|
static |
Creates rotation transform.
| angle |
|
static |
Creates scale transform.
| s |
|
static |
Creates translation transform.
| v |
|
friend |
Gets inverse transform from t.
| t |