object FunctionBuilder: Any

Builder for functions of the OpenDRIVE data model.

Methods

buildCurveTorsion

fun buildCurveTorsion(superelevation: NonEmptyList<RoadLateralProfileSuperelevation>): UnivariateFunction

Builds a function that describes the torsion of the road reference line.

Parameters

Name Description
superelevation: NonEmptyList<RoadLateralProfileSuperelevation>

entries containing coefficients for polynomial functions

ReturnValue

Name Description
UnivariateFunction

buildLateralShape

fun buildLateralShape(roadLateralProfileShape: NonEmptyList<RoadLateralProfileShape>): UnivariateFunction

Builds a function that describes one lateral entry of a road's shape.

Parameters

Name Description
roadLateralProfileShape: NonEmptyList<RoadLateralProfileShape>

the cross-sectional profile of a road at a certain curve position

ReturnValue

Name Description
UnivariateFunction

buildLaneOffset

fun buildLaneOffset(laneOffsets: NonEmptyList<RoadLanesLaneOffset>): UnivariateFunction

Builds a function that described the lateral lane offset to the road reference line.

Parameters

Name Description
laneOffsets: NonEmptyList<RoadLanesLaneOffset>

ReturnValue

Name Description
UnivariateFunction

buildLaneWidth

fun buildLaneWidth(laneWidthEntries: NonEmptyList<RoadLanesLaneSectionLRLaneWidth>, numberTolerance: Double): UnivariateFunction

Builds a function that describes the lane width.

Parameters

Name Description
laneWidthEntries: NonEmptyList<RoadLanesLaneSectionLRLaneWidth>

entries containing coefficients for polynomial functions

numberTolerance: Double

ReturnValue

Name Description
UnivariateFunction

function describing the width of a lane

buildStackedHeightFunctionFromRepeat

fun buildStackedHeightFunctionFromRepeat(repeat: RoadObjectsObjectRepeat, roadReferenceLine: Curve3D): StackedFunction

Returns the absolute height function of a RoadObjectsObjectRepeat object. Therefore a linear function is build for the zOffsets and is added to the height function of the roadReferenceLine.

Parameters

Name Description
repeat: RoadObjectsObjectRepeat

object for which the height function shall be constructed

roadReferenceLine: Curve3D

road's height

ReturnValue

Name Description
StackedFunction

function of the object's absolute height