encodeLongitude

fun encodeLongitude(longitude: Double): Int

Quantizes double (64 bit) longitude into 32 bits (rounding down: in the direction of -180)

Return

encoded value as a 32-bit int

Parameters

longitude

longitude value: must be within standard +/-180 coordinate bounds.

Throws

if longitude is out of bounds