square
Square(x, y, size, angle=0.0)
dataclass
Bases: BaseShape
A square shape for reference marks. At angle 0 its sides are parallel to the axes.
outline()
Return the square, with its four corners on the circle of diameter size.
Source code in src/layerforge/domain/shapes/square.py
26 27 28 29 30 31 | |
type()
Return the type of shape. Always 'square' for this class.
Returns:
| Type | Description |
|---|---|
str
|
The type of shape. Always 'square'. |
Source code in src/layerforge/domain/shapes/square.py
16 17 18 19 20 21 22 23 24 | |