weldx.LineSegment

class weldx.LineSegment(points)

Line segment.

Construct line segment.

Parameters

points (Quantity) – 2x2 matrix of points. The first column is the starting point and the second column the end point.

Returns

Return type

LineSegment

Methods

apply_transformation

Apply a transformation matrix to the segment.

apply_translation

Apply a translation to the segment.

construct_with_points

Construct a line segment with two points.

linear_interpolation

Interpolate two line segments linearly.

rasterize

Create an array of points that describe the segments contour.

transform

Get a transformed copy of the segment.

translate

Get a translated copy of the segment.

Attributes

length

Get the segment length.

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 2x2 matrix.