I’d like to create an int called hash in Java, from the coordinates x, y and w. The values of x and y are signed and often negative. The size of an int is 32 bits. I’d like to assign 4 bits to w (or 3 if the most significant bit isn’t usable), 14 bits […]
The post Creating a unique integer based on 3 different integers appeared first on BlogoSfera.