Skip to content

five-on-it / packages/protocol/src/quantize / packQuat

Function: packQuat() ​

packQuat(x, y, z, w): number

Defined in: packages/protocol/src/quantize.ts:49

Packs a rotation (normalized first) as its smallest three components in 32 bits.

Parameters ​

x ​

number

y ​

number

z ​

number

w ​

number

Returns ​

number