transformations.affinity

Classes pertaining to affinities.

Classes

Affinity

An Affinity is any transformation composed of translations, rotations, uniform scales, stretches, shears, and reflections.

Shear

A Shear transformation shears the plane by a given shear_factor, f, preserving points on the line passing through (0, 0, 0) at a given shear_angle, θ.

Stretch

A Stretch transformation stretches the plane by a given stretch_factor, f, in the direction of line passing through (0, 0, 0) at a given axis_angle, θ.

ManualAffinityUnit

A ManualAffinityUnit is an Affinity unit that is implemented by specifying its matrix manually (used by the compute() method of Affinity).