Class InterpolationUtils

java.lang.Object
net.dermetfan.gdx.math.InterpolationUtils

public class InterpolationUtils extends Object
useful methods regarding Interpolations
Since:
0.6.0
  • Constructor Details

    • InterpolationUtils

      public InterpolationUtils()
  • Method Details

    • get

      public static com.badlogic.gdx.math.Interpolation get(String name)
      Retrieves one of the default Interpolation objects by name using reflection. This is mostly for easy specification in configuration files or similar. The name of the interpolation is converted to a valid java identifier. This means that it can be given in, for example, one of the following formats, where type is the main type (e.g. swing) and sub is the optional sub-type (e.g. in), usually either in or out.
      • typeSub
      • type-sub
      • type_sub
      • type.sub
      • type sub
      Parameters:
      name - The name of the Interpolation to retrieve. Converted to a valid java identifier.
      Returns:
      The Interpolation if found, null if not or if name is null.