Base class representing shape Implement common methods of affine transformations
Bounding box
bounding box of a shape
Shape name
name of the shape
Get a cloned shape
clone of a shape
Get distance to shape.
Rotate shape by given angle around given center point. If center point is omitted, rotates around zero point (0,0). Positive value of angle defines rotation in counterclockwise direction, negative angle defines rotation in clockwise direction
angle in radians
center of rotation
new rotated shape
Scale shape with coordinates multiplied by scaling factor
x-axis scaling factor
y-axis scaling factor
new scaled shape
Transform shape with given affine transformation matrix.
new transformed shape
Translated shape by given vector. Translation vector may be also defined by a pair of numbers.
Rest
Translation vector or translation by x and y or tuple of numbers
new translated shape
Base class representing shape Implement common methods of affine transformations