bearingTo

@JvmName(name = "bearingToAsBearing")
fun Position.bearingTo(to: Position, final: Boolean = false): Bearing(source)

Takes two positions and finds the geographic bearing between them, i.e., the angle measured in degrees from the north line.

Return

Bearing between this and to

Parameters

to

ending point

final

calculates the final bearing if true


@JvmName(name = "bearingToAsBearing")
fun Point.bearingTo(to: Point, final: Boolean = false): Bearing(source)

Takes two points and finds the geographic bearing between them, i.e., the angle measured in degrees from the north line.

Return

Bearing between this and to

Parameters

to

ending point

final

calculates the final bearing if true