octEncodeFloat

external fun octEncodeFloat(vector: Cartesian3): Double(source)

Encodes a normalized vector into 2 SNORM values in the range of 0-255 following the 'oct' encoding and stores those values in a single float-point number.

Return

The 2 byte oct-encoded unit length vector.

Parameters

vector

The normalized vector to be compressed into 2 byte 'oct' encoding.

See also