octDecode

external fun octDecode(x: Double, y: Double, result: Cartesian3): Cartesian3(source)

Decodes a unit-length vector in 2 byte 'oct' encoding to a normalized 3-component vector.

Return

The decoded and normalized vector.

Parameters

x

The x component of the oct-encoded unit length vector.

y

The y component of the oct-encoded unit length vector.

result

The decoded and normalized vector.

See also