# weldx.geometry.ArcSegment#

class weldx.geometry.ArcSegment(points, arc_winding_ccw=True)#

Arc segment.

Construct arc segment.

Parameters:
• points (`Quantity`) – 2x3 matrix of points. The first column is the starting point, the second column the end point and the last the center point.

• arc_winding_ccw (`bool`) – Specifies if the arcs winding order is counter-clockwise

Return type:

ArcSegment

Examples

Create a ̧̧`LineSegment` starting at `x=3`,``y=4`` and ending at `x=1`, `y=6` with the center point `x=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
2.00 mm
Length:
3.14 mm
Winding order:
counter-clock-wise
```

Methods

 `apply_transformation` Apply a transformation to the segment. `apply_translation` Apply a translation in place. `construct_with_points` Construct an arc segment with three points (start, end, center). `construct_with_radius` Construct an arc segment with a radius and the start and end points. `get_points` Get an array of the points at the specified relative positions. `get_section_length` Get the length from the start of the segment to the passed relative position. `linear_interpolation` Interpolate two arc segments linearly. `rasterize` Get an array of discrete raster points of the segment. `transform` Create a new segment transformed by the passed matrix. `translate` Create a new segment translated by the passed vector.

Attributes

 `arc_angle` Get the arc angle. `arc_length` Get the arc length. `arc_winding_ccw` Get True if the winding order is counter-clockwise. `length` Get the length of the segment. `point_center` Get the center point of the segment. `point_end` Get the end point of the segment. `point_start` Get the starting point of the segment. `points` Get the segments points in form of a 2x3 matrix. `radius` Get the radius.