Class FlawedPointHash.FNVHash

java.lang.Object
squidpony.squidmath.IPointHash.IntImpl
squidpony.squidmath.FlawedPointHash.FNVHash
All Implemented Interfaces:
FlawedPointHash, IFlawed, IPointHash
Enclosing interface:
FlawedPointHash

public static class FlawedPointHash.FNVHash
extends IPointHash.IntImpl
implements FlawedPointHash
FNV32a is OK as a hash for bytes when used in some hash tables, but it has major issues on its low-order bits when used as a point hash (the high bits aren't much better). Unfortunately, it is not aesthetically pleasing as a point hash. Some usages might be able to use it to apply a grimy, glitchy effect.