data class CurveRelativePoint3D: Any

Point in a curve relative coordinate system in 3D. This means that only points can be referenced which are not before the curve's start or after the curve's end within the three-dimensional space.

Fields

Name Description
val curvePosition: Double

distance between the start of the curve and the point to be referenced

val lateralOffset: Double

lateral offset that is perpendicular to the curve at the curvePosition

val heightOffset: Double

additional height offset to the curve's height

Constructors

<init>

constructor(curvePosition: Double, lateralOffset: Double, heightOffset: Double)

Point in a curve relative coordinate system in 3D. This means that only points can be referenced which are not before the curve's start or after the curve's end within the three-dimensional space.

Parameters

Name Description
curvePosition: Double

distance between the start of the curve and the point to be referenced

lateralOffset: Double

lateral offset that is perpendicular to the curve at the curvePosition

heightOffset: Double

additional height offset to the curve's height

Methods

getCartesianCurveOffset

fun getCartesianCurveOffset(): Vector3D

ReturnValue

Name Description
Vector3D

toCurveRelative1D

fun toCurveRelative1D(): CurveRelativePoint1D

ReturnValue

Name Description
CurveRelativePoint1D

toCurveRelative2D

fun toCurveRelative2D(): CurveRelativePoint2D

ReturnValue

Name Description
CurveRelativePoint2D

CompanionObject

CurveRelativePoint3D

data class CurveRelativePoint3D: Any

Point in a curve relative coordinate system in 3D. This means that only points can be referenced which are not before the curve's start or after the curve's end within the three-dimensional space.

Fields

Name Description
val ZERO: CurveRelativePoint3D

Methods

of

fun of(curvePosition: Double, lateralOffset: Double, heightOffset: Double): Result<CurveRelativePoint3D, IllegalArgumentException>

Creates a CurveRelativePoint3D by a curvePosition, lateralOffset and heightOffset. If one of the values is not finite, an error is returned.

Parameters

Name Description
curvePosition: Double
lateralOffset: Double
heightOffset: Double

ReturnValue

Name Description
Result<CurveRelativePoint3D, IllegalArgumentException>