eunoia.RotatedRectangle

class eunoia.RotatedRectangle(set: str, center: Point, width: float, height: float, rotation: float)[source]

A fitted rotated rectangle for one input set.

width and height are the side lengths before rotation; rotation is the counterclockwise angle from the x-axis, in radians.

__init__(set: str, center: Point, width: float, height: float, rotation: float) None[source]

Methods

__init__(set, center, width, height, rotation)

Attributes

set

center

width

height

rotation