Uses of Interface
squidpony.squidmath.IPointHash
| Package | Description |
|---|---|
| squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of IPointHash in squidpony.squidmath
Subinterfaces of IPointHash in squidpony.squidmath Modifier and Type Interface Description interfaceFlawedPointHashAn interface for point hashes that are statistically biased, as well as a holder for inner classes that implement this.Classes in squidpony.squidmath that implement IPointHash Modifier and Type Class Description static classFlawedPointHash.CubeHashVery similar toFlawedPointHash.QuiltHash, but this doesn't change the pattern in different large squares, and instead repeats a square or cube of symmetric and patterned results over and over (so it can be tiled).static classFlawedPointHash.FNVHashFNV32a 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).static classFlawedPointHash.QuiltHashExtremely flawed if you're using this as a point hash, but meant to be aesthetically interesting, this produces different symmetrical patterns in squares, as if on a quilt.static classFlawedPointHash.RugHashProduces hashes that show strong bias on one axis (usually the later axes matter more) and have nice-looking patterns of dots.classGoldPointHashA relatively simpleIPointHashthat multiplies each of the x, y, etc.classHastyPointHashA group of similar methods for getting hashes of points based on long coordinates in 2, 3, 4, or 6 dimensions and a long for state; likePointHashbut faster and maybe not as high-quality.classIntPointHashA group of similar methods for getting hashes of points based on int coordinates in 2, 3, 4, or 6 dimensions and an int for state; the code is similar toHastyPointHashbut will be much faster on GWT.static classIPointHash.IntImplA convenience abstract class to implement IPointHash when you have an int for state.static classIPointHash.LongImplA convenience abstract class to implement IPointHash when you have a long for state.classPointHashA group of similar methods for getting hashes of points based on long coordinates in 2, 3, 4, or 6 dimensions and a long for state.Methods in squidpony.squidmath with parameters of type IPointHash Modifier and Type Method Description voidFastNoise. setPointHash(IPointHash hash)