public enum Interpolator extends java.lang.Enum<Interpolator>
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double cur,
double next,
double t) |
double |
interpolator(double t)
f(t), f being the interpolator function
|
double |
interpolatorDerivative(double t)
df/dt, f being the interpolator function
|
double |
interpolatorMultTDerivative(double t)
d(f*t)/dt, f being the interpolator function
|
static Interpolator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Interpolator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Interpolator LINEAR
public static final Interpolator HERMITE
public static final Interpolator QUINTIC
public static Interpolator[] values()
for (Interpolator c : Interpolator.values()) System.out.println(c);
public static Interpolator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic double interpolator(double t)
public double interpolatorDerivative(double t)
public double interpolatorMultTDerivative(double t)
public double interpolate(double cur,
double next,
double t)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com