|
ASCII-GFX
2.0
|
Functions | |
| Mat3 | top () |
| get current transformation represented by a 3x3 homogeneous matrix the current transformation is the top of the matrix stack More... | |
| void | push () |
| push current transformation this duplicates the current matrix on top of the matrix stack More... | |
| void | replace (const Mat3 &m) |
| replace current transformation with a given transformation matrix More... | |
| Mat3 | pop () |
| pop current transformation this removes the current matrix on top of the matrix stack More... | |
| void | translate (float x, float y) |
| apply translation to current transformation More... | |
| void | translate (Vec2 v) |
| apply translation vector to current transformation More... | |
| void | rotate (float a, float aspect) |
| apply clockwise rotation to current transformation More... | |
| void | scale (float f) |
| apply uniform scaling factor to current transformation More... | |
| void | scale (float s, float t) |
| apply non-uniform scaling to current transformation More... | |
| Vec2 | translation () |
| get current translation vector More... | |
| float | rotation (float aspect) |
| get current rotation angle More... | |
| float | scaling (float aspect) |
| get current scaling factor More... | |
Variables | |
| static const int | mat3_stack_max = 100 |
| static int | mat3_stack_size = 0 |
| static Mat3 | mat3_stack [mat3_stack_max] |
| Mat3 pop | ( | ) |
pop current transformation this removes the current matrix on top of the matrix stack
| void push | ( | ) |
push current transformation this duplicates the current matrix on top of the matrix stack
| void replace | ( | const Mat3 & | m | ) |
replace current transformation with a given transformation matrix
| void rotate | ( | float | a, |
| float | aspect = 2 |
||
| ) |
apply clockwise rotation to current transformation
| float rotation | ( | float | aspect = 2 | ) |
get current rotation angle
| void scale | ( | float | f | ) |
apply uniform scaling factor to current transformation
| void scale | ( | float | s, |
| float | t | ||
| ) |
apply non-uniform scaling to current transformation
| float scaling | ( | float | aspect = 2 | ) |
get current scaling factor
| Mat3 top | ( | ) |
get current transformation represented by a 3x3 homogeneous matrix the current transformation is the top of the matrix stack
| void translate | ( | float | x, |
| float | y | ||
| ) |
apply translation to current transformation
| void translate | ( | Vec2 | v | ) |
apply translation vector to current transformation
| Vec2 translation | ( | ) |
get current translation vector
|
static |
|
static |
|
static |
1.8.17