|
| AffineTransform () noexcept |
|
| AffineTransform (const AffineTransform &other) noexcept |
|
| AffineTransform (float mat00, float mat01, float mat02, float mat10, float mat11, float mat12) noexcept |
|
AffineTransform & | operator= (const AffineTransform &other) noexcept |
|
bool | operator== (const AffineTransform &other) const noexcept |
|
bool | operator!= (const AffineTransform &other) const noexcept |
|
template<typename ValueType > |
void | transformPoint (ValueType &x, ValueType &y) const noexcept |
|
template<typename ValueType > |
void | transformPoints (ValueType &x1, ValueType &y1, ValueType &x2, ValueType &y2) const noexcept |
|
template<typename ValueType > |
void | transformPoints (ValueType &x1, ValueType &y1, ValueType &x2, ValueType &y2, ValueType &x3, ValueType &y3) const noexcept |
|
AffineTransform | translated (float deltaX, float deltaY) const noexcept |
|
template<typename PointType > |
AffineTransform | translated (PointType delta) const noexcept |
|
AffineTransform | withAbsoluteTranslation (float translationX, float translationY) const noexcept |
|
AffineTransform | rotated (float angleInRadians) const noexcept |
|
AffineTransform | rotated (float angleInRadians, float pivotX, float pivotY) const noexcept |
|
AffineTransform | scaled (float factorX, float factorY) const noexcept |
|
AffineTransform | scaled (float factor) const noexcept |
|
AffineTransform | scaled (float factorX, float factorY, float pivotX, float pivotY) const noexcept |
|
AffineTransform | sheared (float shearX, float shearY) const noexcept |
|
AffineTransform | inverted () const noexcept |
|
AffineTransform | followedBy (const AffineTransform &other) const noexcept |
|
bool | isIdentity () const noexcept |
|
bool | isSingularity () const noexcept |
|
bool | isOnlyTranslation () const noexcept |
|
float | getTranslationX () const noexcept |
|
float | getTranslationY () const noexcept |
|
float | getScaleFactor () const noexcept |
|
|
static AffineTransform | translation (float deltaX, float deltaY) noexcept |
|
template<typename PointType > |
static AffineTransform | translation (PointType delta) noexcept |
|
static AffineTransform | rotation (float angleInRadians) noexcept |
|
static AffineTransform | rotation (float angleInRadians, float pivotX, float pivotY) noexcept |
|
static AffineTransform | scale (float factorX, float factorY) noexcept |
|
static AffineTransform | scale (float factor) noexcept |
|
static AffineTransform | scale (float factorX, float factorY, float pivotX, float pivotY) noexcept |
|
static AffineTransform | shear (float shearX, float shearY) noexcept |
|
static AffineTransform | verticalFlip (float height) noexcept |
|
static AffineTransform | fromTargetPoints (float x00, float y00, float x10, float y10, float x01, float y01) noexcept |
|
static AffineTransform | fromTargetPoints (float sourceX1, float sourceY1, float targetX1, float targetY1, float sourceX2, float sourceY2, float targetX2, float targetY2, float sourceX3, float sourceY3, float targetX3, float targetY3) noexcept |
|
Represents a 2D affine-transformation matrix.
An affine transformation is a transformation such as a rotation, scale, shear, resize or translation.
These are used for various 2D transformation tasks, e.g. with Path objects.
- See Also
- Path, Point, Line
AffineTransform AffineTransform::fromTargetPoints |
( |
float |
x00, |
|
|
float |
y00, |
|
|
float |
x10, |
|
|
float |
y10, |
|
|
float |
x01, |
|
|
float |
y01 |
|
) |
| |
|
staticnoexcept |
Returns the transform that will map three known points onto three coordinates that are supplied.
This returns the transform that will transform (0, 0) into (x00, y00), (1, 0) to (x10, y10), and (0, 1) to (x01, y01).