lengthToRadians

fun lengthToRadians(distance: Double, units: Units = Units.Kilometers): Double

Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians.

Return

Radians

Parameters

distance

Distance in real units

Throws

if the given units are invalid