data class ParameterTransformedCurve2D: AbstractCurve2D

Transforms the parameter (curveRelativePoint) by means of the transformationFunction function, before calculating the cartesian coordinates of the baseCurve.

The parameters of a curve can e.g. be normalized (domain: 0.0,1.0) or reflect the actual curve length (domain: 0.0,length). To harmonise these differences, this class allows to rescale the parameters of an AbstractCurve2D.

Fields

Name Description
val tolerance: Double

tolerable threshold value

val domain: Range<Double>

definable domain

Constructors

<init>

constructor(baseCurve: AbstractCurve2D, transformationFunction: (CurveRelativePoint1D)->CurveRelativePoint1D, domain: Range<Double>)

Transforms the parameter (curveRelativePoint) by means of the transformationFunction function, before calculating the cartesian coordinates of the baseCurve.

The parameters of a curve can e.g. be normalized (domain: 0.0,1.0) or reflect the actual curve length (domain: 0.0,length). To harmonise these differences, this class allows to rescale the parameters of an AbstractCurve2D.

Parameters

Name Description
baseCurve: AbstractCurve2D

base curve which parameter is to be transformed

transformationFunction: (CurveRelativePoint1D)->CurveRelativePoint1D

function which is applied to the provided parameter

domain: Range<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