object Curve2DBuilder: Any

Builder for curves in 2D from the OpenDRIVE data model.

Methods

buildCurve2DFromPlanViewGeometries

fun buildCurve2DFromPlanViewGeometries(planViewGeometryList: NonEmptyList<RoadPlanViewGeometry>, numberTolerance: Double, distanceTolerance: Double, angleTolerance: Double): CompositeCurve2D

Builds a concatenated curve in 2D for the OpenDRIVE's plan view elements.

Parameters

Name Description
planViewGeometryList: NonEmptyList<RoadPlanViewGeometry>

source geometry curve segments of OpenDRIVE

numberTolerance: Double
distanceTolerance: Double
angleTolerance: Double

ReturnValue

Name Description
CompositeCurve2D

prepareCurveMembers

fun prepareCurveMembers(planViewGeometryList: NonEmptyList<RoadPlanViewGeometry>, numberTolerance: Double): Triple, List>, List><List<AbstractCurve2D>, List<Range<Double>>, List<Double>>

Prepares the list of RoadPlanViewGeometry for constructing the composite curve.

Parameters

Name Description
planViewGeometryList: NonEmptyList<RoadPlanViewGeometry>
numberTolerance: Double

ReturnValue

Name Description
Triple, List>, List><List<AbstractCurve2D>, List<Range<Double>>, List<Double>>

buildLateralTranslatedCurve

fun buildLateralTranslatedCurve(repeat: RoadObjectsObjectRepeat, roadReferenceLine: Curve3D, numberTolerance: Double): LateralTranslatedCurve2D

Builds the function for laterally translating the roadReferenceLine which is inter alia required for the building of road objects.

Parameters

Name Description
repeat: RoadObjectsObjectRepeat
roadReferenceLine: Curve3D
numberTolerance: Double

ReturnValue

Name Description
LateralTranslatedCurve2D