Package net.dermetfan.gdx.math
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.Interpolationget(java.lang.String name)Retrieves one of the defaultInterpolationobjects 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 defaultInterpolationobjects by name using reflection. This is mostly for easy specification in configuration files or similar. The name of the interpolation isconvertedto a valid java identifier. This means that it can be given in, for example, one of the following formats, wheretypeis the main type (e.g.swing) andsubis the optional sub-type (e.g.in), usually eitherinorout.typeSubtype-subtype_subtype.subtype sub
- Parameters:
name- The name of theInterpolationto retrieve. Converted to a valid java identifier.- Returns:
- The
Interpolationif found,nullif not or ifnameisnull.
-