FunctionBuilder

Builder for functions of the OpenDRIVE data model.

Functions

Link copied to clipboard

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

Link copied to clipboard
fun buildLaneOffset(laneOffsets: NonEmptyList<RoadLanesLaneOffset>): UnivariateFunction

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

Link copied to clipboard
fun buildLaneWidth(laneWidthEntries: NonEmptyList<RoadLanesLaneSectionLRLaneWidth>, numberTolerance: Double): UnivariateFunction

Builds a function that describes the lane width.

Link copied to clipboard
fun buildLateralShape(roadLateralProfileShape: NonEmptyList<RoadLateralProfileShape>): UnivariateFunction

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

Link copied to clipboard

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.