encodeOrientationVector

Packs vec2 into one float value.

Return

the float value with encoded coordinates

Parameters

x

x coordinate of vector should be in range -1 to 1

y

y coordinate of vector should be in range -1 to 1