data class LateralTranslatedCurve2D: AbstractCurve2D

Laterally translates a baseCurve by a lateralTranslationFunction. This enables for example the representation of the baseCurve moved two units to the left.

Fields

Name Description
val domain: Range<Double>

definable domain

val tolerance: Double

tolerable threshold value

Constructors

<init>

constructor(baseCurve: AbstractCurve2D, lateralTranslationFunction: UnivariateFunction, tolerance: Double)

Laterally translates a baseCurve by a lateralTranslationFunction. This enables for example the representation of the baseCurve moved two units to the left.

Parameters

Name Description
baseCurve: AbstractCurve2D

base curve to be laterally translated

lateralTranslationFunction: UnivariateFunction

function which defines the lateral translation

tolerance: 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

addLateralTranslation

fun addLateralTranslation(lateralTranslationFunction: UnivariateFunction, multiplier: Double): LateralTranslatedCurve2D

Returns a LateralTranslatedCurve2D with an additional translation of lateralTranslationFunction.

Parameters

Name Description
lateralTranslationFunction: UnivariateFunction

lateral translation function that is added

multiplier: Double

multiplication factor, whereby 0.5 means that only 0.5 of the translation function is added

ReturnValue