Class InterpolationUtils

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

public class InterpolationUtils
extends java.lang.Object
useful methods regarding Interpolations
Since:
0.6.0
  • Constructor Summary

    Constructors
    Constructor Description
    InterpolationUtils()  
  • Method Summary

    Modifier and Type Method Description
    static com.badlogic.gdx.math.Interpolation get​(java.lang.String name)
    Retrieves one of the default Interpolation objects by name using reflection.

    Methods inherited from class java.lang.Object

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

    • InterpolationUtils

      public InterpolationUtils()
  • Method Details

    • get

      public static com.badlogic.gdx.math.Interpolation get​(java.lang.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.