encode Orientation Vector
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
Packs vec2 into one float value.
the float value with encoded coordinates
x coordinate of vector should be in range -1 to 1
y coordinate of vector should be in range -1 to 1