setLinearHeadingInterpolation

public PathBuilder setLinearHeadingInterpolation(double startHeading, double endHeading)

This sets a linear heading interpolation on the last Path added to the PathBuilder.

Return

This returns itself with the updated data.

Parameters

startHeading

The start of the linear heading interpolation.

endHeading

The end of the linear heading interpolation. This will be reached at the end of the Path if no end time is specified.


public PathBuilder setLinearHeadingInterpolation(double startHeading, double endHeading, double endTime)

This sets a linear heading interpolation on the last Path added to the PathBuilder.

Return

This returns itself with the updated data.

Parameters

startHeading

The start of the linear heading interpolation.

endHeading

The end of the linear heading interpolation. This will be reached at the end of the Path if no end time is specified.

endTime

The end time on the Path that the linear heading interpolation will end. This value goes from [0, 1] since Bezier curves are parametric functions.