OrientedCircularArc#
- class OrientedCircularArc(center, radius, theta1, theta2, reversed=False)#
Bases:
CircularArc
Circular arc with an orientation flag for start/end selection.
- __init__(center, radius, theta1, theta2, reversed=False)#
Create a circle characterized by a center point and a radius.
- Parameters:
center – Complex number representing the circle’s center.
radius – Radius of the circle.
Methods
__init__
(center, radius, theta1, theta2[, ...])Create a circle characterized by a center point and a radius.
angle
()Angular span of the arc in radians (in [0, 2π)).
length
()Arc length (radius × angle).
set_orientation
(start_point, end_point)Set the orientation so that the point at angle theta1 is closer to start_point and the point at theta2 is closer to end_point.
shorten
(length, side[, inplace])Shorten arc from side 'A' (start) or 'B' (end).
Attributes
- set_orientation(start_point, end_point)#
Set the orientation so that the point at angle theta1 is closer to start_point and the point at theta2 is closer to end_point.
- shorten(length, side, inplace=False)#
Shorten arc from side ‘A’ (start) or ‘B’ (end).
- property A#
Start point respecting the reversed flag.
- property B#
End point respecting the reversed flag.
- angle()#
Angular span of the arc in radians (in [0, 2π)).
- length()#
Arc length (radius × angle).