data class CompositeCurve2D: AbstractCurve2D

Represents the sequential concatenation of the curveMembers.

Fields

Name Description
val domain: override

definable domain

val tolerance: override

tolerable threshold value

val curveMembers: List<AbstractCurve2D>

curves to be concatenated

Constructors

<init>

constructor(curveMembers: List<AbstractCurve2D>, absoluteDomains: List<Range<Double>>, absoluteStarts: List<Double>)

Represents the sequential concatenation of the curveMembers.

Parameters

Name Description
curveMembers: List<AbstractCurve2D>

curves to be concatenated

absoluteDomains: List<Range<Double>>
absoluteStarts: List<Double>

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

toString

fun toString(): String

ReturnValue

Name Description
String