ictdesigntools.draw.transform¶
Affine transforms for drawings, in the SVG convention: x to the right, y down, and a point
mapped as (a*x + c*y + e, b*x + d*y + f).
Transform
dataclass
¶
Transform(
a: float = 1.0,
b: float = 0.0,
c: float = 0.0,
d: float = 1.0,
e: float = 0.0,
f: float = 0.0,
)
scale_factor
property
¶
scale_factor: float
How much lengths grow, for a similarity (uniform scale with rotation or mirror).
is_similarity
property
¶
is_similarity: bool
True when circles stay circles: no shear or uneven scale.
rotation
property
¶
rotation: float
The page rotation of the x axis, in degrees counter-clockwise as seen on the page.
rotate
staticmethod
¶
Counter-clockwise as seen on the page (y down), about (cx, cy).