addSpline

fun addSpline(endPosition: Vector2d, endTangent: Angle, startTangentMag: Double = -1.0, endTangentMag: Double = -1.0, headingInterpolation: HeadingInterpolation = TangentHeading): PathBuilder

Adds a spline segment with the specified heading interpolation.

Parameters

endPosition

end position

endTangent

end tangent

startTangentMag

the magnitude of the start tangent (negative = default magnitude)

endTangentMag

the magnitude of the end tangent (negative = default magnitude)

headingInterpolation

desired heading interpolation

See also