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.Interpolation
get(java.lang.String name)
Retrieves one of the defaultInterpolation
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 defaultInterpolation
objects by name using reflection. This is mostly for easy specification in configuration files or similar. The name of the interpolation isconverted
to a valid java identifier. This means that it can be given in, for example, one of the following formats, wheretype
is the main type (e.g.swing
) andsub
is the optional sub-type (e.g.in
), usually eitherin
orout
.typeSub
type-sub
type_sub
type.sub
type sub
- Parameters:
name
- The name of theInterpolation
to retrieve. Converted to a valid java identifier.- Returns:
- The
Interpolation
if found,null
if not or ifname
isnull
.
-