interpolateAlongPath

fun interpolateAlongPath(endLocation: Location, pathType: PathType, amount: Double, result: Location): Location

Compute a location along a path between two locations. The amount indicates the fraction of the path at which to compute a location. This value is typically between 0 and 1, where 0 indicates the begin location (this location) and 1 indicates the end location.

Return

the result argument set to the computed location

Parameters

endLocation

the path's end location

pathType

PathType indicating type of path to assume

amount

the fraction of the path at which to compute a location

result

a pre-allocated Location in which to return the computed location