weldx.ArcSegment#
- class weldx.ArcSegment(points, arc_winding_ccw=True)#
Arc segment.
Construct arc segment.
- Parameters:
- Return type:
Examples
Create a ̧̧`LineSegment` starting at
x=3
,``y=4`` and ending atx=1
,y=6
with the center pointx=1
,``y=4``>>> from weldx import Q_, ArcSegment >>> point_data = Q_([[3, 1, 1], [4, 6, 4]], "mm") >>> ArcSegment(point_data) <ArcSegment> Line: [3.00 4.00] mm -> [1.00 6.00] mm Center: [1 4] mm Radius: 2.00 mm Length: 3.14 mm Winding order: counter-clock-wise
Methods
Apply a transformation to the segment.
Apply a translation in place.
Construct an arc segment with three points (start, end, center).
Construct an arc segment with a radius and the start and end points.
Get an array of the points at the specified relative positions.
Get the length from the start of the segment to the passed relative position.
Interpolate two arc segments linearly.
Get an array of discrete raster points of the segment.
Create a new segment transformed by the passed matrix.
Create a new segment translated by the passed vector.
Attributes
Get the arc angle.
Get the arc length.
Get True if the winding order is counter-clockwise.
Get the length of the segment.
Get the center point of the segment.
Get the end point of the segment.
Get the starting point of the segment.
Get the segments points in form of a 2x3 matrix.
Get the radius.