Class MathUtils

  • All Implemented Interfaces:

    
    public final class MathUtils
    
                        

    A minimal math utility class.

    Author:

    vincent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MathUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static float hashFloat(float x, float in, float in2, float out, float out2) hashFloat.
      static int hashInt(int x, int in, int in2, int out, int out2) hashInt.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MathUtils

        MathUtils()
    • Method Detail

      • hashFloat

         static float hashFloat(float x, float in, float in2, float out, float out2)

        hashFloat.

        Parameters:
        x - a float.
        in - a float.
        in2 - a float.
        out - a float.
        out2 - a float.
        Returns:

        a float.

      • hashInt

         static int hashInt(int x, int in, int in2, int out, int out2)

        hashInt.

        Parameters:
        x - a int.
        in - a int.
        in2 - a int.
        out - a int.
        out2 - a int.
        Returns:

        a int.