weldx.geometry.DynamicBaseSegment#
- class weldx.geometry.DynamicBaseSegment(series, max_coord=1, **kwargs)#
Segment class to define arbitrary lines using the
SpatialSeries
.Initialize a
DynamicBaseSegment
.- Parameters:
series (
Union
[SpatialSeries
,Quantity
,DataArray
,str
,MathematicalExpression
]) – ASpatialSeries
that describes the trajectory of the shape segment. Alternatively, one can pass every other object that is valid as first argument to of the__init__
method of theSpatialSeries
.max_coord (
float
) – [only expression basedSpatialSeries
] The maximum coordinate value of the passed series dimension that specifies the position on the 2d line. The value defines the segments length by evaluating the expression on the interval [0,max_coord
]kwargs – A set of keyword arguments that will be forwarded to the
__init__
method of theSpatialSeries
in case theseries
parameter isn’t already aSpatialSeries
.
Methods
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.
Attributes
Get the length of the segment.