Class HashFunctions

java.lang.Object
org.spongepowered.math.HashFunctions

public final class HashFunctions extends Object
Provides various hash functions.
  • Method Details

    • fastCeil

      public static int fastCeil(float v)
      In profiling, it has been found to be faster to have our own local implementation of "ceil" rather than to call to Math.ceil(double).
      Parameters:
      v - the value to ceil
      Returns:
      the ceil'd value