Class Normalizer

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.math.Normalizer

public class Normalizer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    normalize(double fromMin, double fromMax, double toMin, double toMax, double input)
    Normalizes a value based on the initial range and the target range.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Normalizer

      public Normalizer()
  • Method Details

    • normalize

      public static double normalize(double fromMin, double fromMax, double toMin, double toMax, double input)
      Normalizes a value based on the initial range and the target range.
      Parameters:
      fromMin - initial minimum
      fromMax - initial maximum greater or equal to initial minimum
      toMin - target minimum
      toMax - target maximum greater or equal to target minimum
      input - input to be normalized
      Returns:
      normalized value