LineExtrudedRectangle#
- zeroheliumkit.src.geometries.LineExtrudedRectangle(point: tuple | Point | Anchor, width: float, length: float, direction: float = 0) Polygon[source]#
Returns a rectangle that is extruded from a point in specific direction.
- Parameters:
point (tuple | Point | Anchor) – The starting point of the extrusion. Can be a tuple, Point object, or Anchor object.
width (float) – The width of the rectangle.
length (float) – The length of the rectangle.
direction (float) – The direction of the extrusion in degrees. Default is 0.
Example
>>> LineExtrudedRectangle(Anchor((10,5), 60, "a"), 2, 20)