draw_vector_line
draw_vector_line
¶
DrawVectorLine Module.¶
This module defines the base class for creating vector line components
used in drawing creation. The main class, DrawVectorLine, represents
a vector line defined by its start and end positions and width.
DrawVectorLine
¶
Bases: DrawCommand
Represents a vector line component used in drawing creation. This class is defined by its start position, end position, and width.
Source code in src/pygerber/backend/abstract/draw_commands/draw_vector_line.py
__init__
¶
__init__(
backend: Backend,
polarity: Polarity,
start_position: Vector2D,
end_position: Vector2D,
width: Offset,
) -> None
Initialize draw command.
Source code in src/pygerber/backend/abstract/draw_commands/draw_vector_line.py
get_bounding_box
¶
Return bounding box of draw operation.