convertLongitudeRange
Converts a longitude value, in radians, to the range [-Math.PI, Math.PI).
// Convert 270 degrees to -90 degrees longitude
const longitude = Math.convertLongitudeRange(Math.toRadians(270.0));Content copied to clipboard
Return
The equivalent longitude value in the range [-Math.PI, Math.PI).
Parameters
angle
The longitude value, in radians, to convert to the range [-Math.PI, Math.PI).