octDecodeInRange

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

Decodes a unit-length vector in '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.

rangeMax

The maximum value of the SNORM range. The encoded vector is stored in log2(rangeMax+1) bits.

result

The decoded and normalized vector

See also