encodeLatitudeCeil

fun encodeLatitudeCeil(latitude: Double): Int

Quantizes double (64 bit) latitude into 32 bits (rounding up: in the direction of +90)

Return

encoded value as a 32-bit int

Parameters

latitude

latitude value: must be within standard +/-90 coordinate bounds.

Throws

if latitude is out of bounds