prepareOptimalBearingPath

fun prepareOptimalBearingPath(targets: DoubleArray): DoubleArray

Util function to transform given bearing values to optimal ones so that shortest path is always taken.