Quantize normalized vector for network communication

69 Views Asked by At

I am wondering if is possible to send Vector3(float x, float y, float z) in some kind of shorter data type, because right now I am sending three floats (3*4 bytes). I am talking about normalized vector, which can hold only range from -1f to +1f for every vector part, thats why I am wondering if is possible to somehow shift bits (or something like that) and put all three values to only one 4 byte lenght value, or even shorter?

0

There are 0 best solutions below