of

fun of(curvePosition: Double, lateralOffset: Double, heightOffset: Double): Either<IllegalArgumentException, CurveRelativeVector3D>

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