encode

fun encode(x: Float): Int

Quantizes double (64 bit) values into 32 bits

Return

encoded value as a 32-bit int

Parameters

x

cartesian value

Throws

if value is out of bounds