Special transformation constructors. More...
Functions | |
| KEYTransformation | center (double width, double height) |
| Translate to the center of viewport. More... | |
| KEYTransformation | origin (double width, double height) |
| Translate from the center of viewport to the origin. More... | |
| KEYTransformation | flip (bool horizontal, bool vertical) |
| Flip horizontally and/or vertically. More... | |
| KEYTransformation | rotate (double angle) |
| Rotate counterclockwise around origin. More... | |
| KEYTransformation | scale (double ratioX, double ratioY) |
Scale along x and/or y axis. More... | |
| KEYTransformation | shear (double angleX, double angleY) |
Shear along x and/or y axis. More... | |
| KEYTransformation | translate (double offsetX, double offsetY) |
Translate along x and/or y axis. More... | |
Special transformation constructors.
| KEYTransformation libetonyek::transformations::center | ( | double | width, |
| double | height | ||
| ) |
Translate to the center of viewport.
Referenced by libetonyek::makeTransformation().
| KEYTransformation libetonyek::transformations::flip | ( | bool | horizontal, |
| bool | vertical | ||
| ) |
Flip horizontally and/or vertically.
Referenced by libetonyek::makeArrowPath(), libetonyek::makeDoubleArrowPath(), and libetonyek::makeTransformation().
| KEYTransformation libetonyek::transformations::origin | ( | double | width, |
| double | height | ||
| ) |
Translate from the center of viewport to the origin.
This is inverse operation to center().
Referenced by libetonyek::makeTransformation().
| KEYTransformation libetonyek::transformations::rotate | ( | double | angle | ) |
Rotate counterclockwise around origin.
x axis on the right side. Referenced by libetonyek::makeStarPath(), and libetonyek::makeTransformation().
| KEYTransformation libetonyek::transformations::scale | ( | double | ratioX, |
| double | ratioY | ||
| ) |
Scale along x and/or y axis.
x axis. y axis. Referenced by flip().
| KEYTransformation libetonyek::transformations::shear | ( | double | angleX, |
| double | angleY | ||
| ) |
Shear along x and/or y axis.
x axis. y axis. Referenced by libetonyek::makeTransformation().
| KEYTransformation libetonyek::transformations::translate | ( | double | offsetX, |
| double | offsetY | ||
| ) |
Translate along x and/or y axis.
x axis. y axis. Referenced by center(), libetonyek::makeArrowPath(), libetonyek::makeCalloutPath(), libetonyek::makeDoubleArrowPath(), libetonyek::makePolygonPath(), libetonyek::makeRoundedRectanglePath(), libetonyek::makeStarPath(), libetonyek::makeTransformation(), and origin().