class SectionedCurve2D: AbstractCurve2D

Cuts out a section from the completeCurve. The resulting domain of the SectionedCurve2D starts at 0.0 and ends at the length of the section.

Fields

Name Description
val domain: Range<Double>

definable domain

val tolerance: Double

tolerable threshold value

Constructors

<init>

constructor(completeCurve: AbstractCurve2D, section: Range<Double>)

Cuts out a section from the completeCurve. The resulting domain of the SectionedCurve2D starts at 0.0 and ends at the length of the section.

Parameters

Name Description
completeCurve: AbstractCurve2D

complete curve segment that is to be cut

section: Range<Double>

the range that is cut out from the completeCurve's domain

Methods

calculatePointLocalCSUnbounded

protected fun calculatePointLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): Result<Vector2D, Exception>

Returns the point in the cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system.

Parameters

Name Description
curveRelativePoint: CurveRelativePoint1D

point in curve relative coordinates

ReturnValue

Name Description
Result<Vector2D, Exception>

point in cartesian coordinates

calculateRotationLocalCSUnbounded

protected fun calculateRotationLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): Result<Rotation2D, Exception>

Returns the orientation in the local cartesian coordinate system that is tangential to this curve at a given point which is given in a curve relative coordinate system.

Parameters

Name Description
curveRelativePoint: CurveRelativePoint1D

point in curve relative coordinates for which the orientation is to be calculated

ReturnValue

Name Description
Result<Rotation2D, Exception>

orientation tangential to this curve