Intertangle::Taffeta::Transform::Affine2D - A 2D affine transform
version 0.001
Moo::Object
The Intertangle::Yarn::Graphene::Matrix matrix representing the affine transform.
Intertangle::Yarn::Graphene::Matrix
This matrix is the identity matrix by default.
A Cairo::Matrix representation of the affine transform.
Cairo::Matrix
A Str representation of the affine transform that can be used with transform attribute for SVG elements such as <g> or graphics elements.
Str
transform
<g>
See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform.
matrix_abcdef
[ a c 0 0 b d 0 0 0 0 1 0 e f 0 1 ]
matrix_xy
[ xx yx 0 0 xy yy 0 0 0 0 1 0 x0 y0 0 1 ]
If keys are not given for either approach, the default values for the identity matrix are used:
a, d : 1 b, c : 0 e, f : 0 xx, yy : 1 yx, xy : 0 x0, y0 : 0
Compose the transform with another transform by using matrix multiplication: (this x that).
this x that
Compose the transform with another transform by using matrix multiplication: (that x this).
that x this
Apply the transformation to a Intertangle::Yarn::Graphene::Rect.
Intertangle::Yarn::Graphene::Rect
Apply the transformation to a Intertangle::Yarn::Graphene::Point.
Intertangle::Yarn::Graphene::Point
Apply the transformation to a Intertangle::Yarn::Graphene::Vec3.
Intertangle::Yarn::Graphene::Vec3
Zakariyya Mughal <zmughal@cpan.org>
This software is copyright (c) 2018 by Zakariyya Mughal.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Intertangle::Taffeta, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Intertangle::Taffeta
CPAN shell
perl -MCPAN -e shell install Intertangle::Taffeta
For more information on module installation, please visit the detailed CPAN module installation guide.