maspack.interpolation
Enum Interpolation.Order

java.lang.Object
  extended by java.lang.Enum<Interpolation.Order>
      extended by maspack.interpolation.Interpolation.Order
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Interpolation.Order>
Enclosing class:
Interpolation

public static enum Interpolation.Order
extends java.lang.Enum<Interpolation.Order>

Order of the interpolation.


Enum Constant Summary
Cubic
          Values are set by cubic Catmull interpolation between the surrounding knot points.
Linear
          Values are set by linear interpolation of the closest surrounding knot points.
Parabolic
          Values are set by quadartic interpolation of the surrounding knot points.
SphericalCubic
          Where appropriate, 3D rotation values are set by spherical cubic interpolation (i.e., "slerp", as described by Shoemake's 1985 SIGGRAPH paper).
SphericalLinear
          Where appropriate, 3D rotation values are set by piecewise spherical linear interpolation (i.e., "slerp", as described by Shoemake's 1985 SIGGRAPH paper).
Step
          Values are set to the values of the closest previous knots points.
 
Method Summary
static Interpolation.Order valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Interpolation.Order[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Step

public static final Interpolation.Order Step
Values are set to the values of the closest previous knots points.


Linear

public static final Interpolation.Order Linear
Values are set by linear interpolation of the closest surrounding knot points.


Parabolic

public static final Interpolation.Order Parabolic
Values are set by quadartic interpolation of the surrounding knot points.


Cubic

public static final Interpolation.Order Cubic
Values are set by cubic Catmull interpolation between the surrounding knot points.


SphericalLinear

public static final Interpolation.Order SphericalLinear
Where appropriate, 3D rotation values are set by piecewise spherical linear interpolation (i.e., "slerp", as described by Shoemake's 1985 SIGGRAPH paper). Otherwise, interpolation is linear.


SphericalCubic

public static final Interpolation.Order SphericalCubic
Where appropriate, 3D rotation values are set by spherical cubic interpolation (i.e., "slerp", as described by Shoemake's 1985 SIGGRAPH paper). Otherwise, interpolation is cubic.

Method Detail

values

public static Interpolation.Order[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Interpolation.Order c : Interpolation.Order.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Interpolation.Order valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null