encodeLongitudeCeil

fun encodeLongitudeCeil(longitude: Double): Int

Quantizes double (64 bit) longitude into 32 bits (rounding up: 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