octUnpack

external fun octUnpack(packed: Cartesian2, v1: Cartesian3, v2: Cartesian3, v3: Cartesian3)(source)

Decodes three unit-length vectors in 'oct' encoding packed into a floating-point number to a normalized 3-component vector.

Parameters

packed

The three oct-encoded unit length vectors stored as two floating-point number.

v1

One decoded and normalized vector.

v2

One decoded and normalized vector.

v3

One decoded and normalized vector.

See also