Module iron_shapes::transform[][src]

Transforms are used to describe the location, rotation, scaling and mirroring of geometric shapes.

Structs

ComplexTransform

Transformation described by a mirroring at the x axis, then a rotation around the origin, then a scaling, then a translation. This transformation allows rotations by arbitrary angles.

Matrix2dTransform

Description of a transformation in the euclidean plane by a 2x2 matrix A. Transforming a point p is computed by the matrix product A*p.

Matrix3dTransform

Affine transformation represented as a 3x3 matrix like:

Rot90Transform

Transformation that consists only of a rotation by a multiple of 90 degrees around the origin (0, 0).

SimpleTransform

Describes a geometric transformation that consists of a optional mirroring along the x-axis followed by a rotation by a multiple of 90 degrees followed by a displacement.