public enum Interpolation extends java.lang.Enum<Interpolation>
Enum Constant and Description |
---|
B_SPLINE
Basis splines are defined by a series of control points, for which the curve is guaranteed only to go through the first and the last point.
|
BEZIER
A bezier or Hermite spline.
|
CARDINAL_SPLINE
A cardinal spline is a cubic Hermite spline whose tangents are defined by the endpoints and a tension parameter.
|
CONSTANT
The value will remains constant to the value of the first point until the next segment.
|
LINEAR
Linear interpolation is a straight line between two points.
|
TCB_SPLINE
Also called Kochanek-Bartels spline, the behavior of tangent is defined by tension/bias/continuity
|
Modifier and Type | Method and Description |
---|---|
static Interpolation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Interpolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Interpolation CONSTANT
public static final Interpolation LINEAR
public static final Interpolation BEZIER
public static final Interpolation B_SPLINE
public static final Interpolation CARDINAL_SPLINE
public static final Interpolation TCB_SPLINE
public static Interpolation[] values()
for (Interpolation c : Interpolation.values()) System.out.println(c);
public static Interpolation 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 null