public class BezierCurve
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
X_VALUE |
static int |
Y_VALUE |
static int |
Z_VALUE |
Constructor and Description |
---|
BezierCurve(int type,
java.util.List<Structure> bezTriples,
int dimension) |
BezierCurve(int type,
java.util.List<Structure> bezTriples,
int dimension,
boolean fixUpAxis) |
Modifier and Type | Method and Description |
---|---|
double |
evaluate(int frame,
int valuePart)
This method evaluates the data for the specified frame.
|
java.util.List<Vector3f> |
getControlPoints()
This method returns a list of control points for this curve.
|
int |
getLastFrame()
This method returns the frame where last bezier triple center point of the bezier curve is located.
|
double |
getRadius(int bezierTripleIndex)
The method returns the radius for the required bezier triple.
|
int |
getType()
This method returns the type of the bezier curve.
|
java.lang.String |
toString() |
public static final int X_VALUE
public static final int Y_VALUE
public static final int Z_VALUE
public BezierCurve(int type, java.util.List<Structure> bezTriples, int dimension)
public BezierCurve(int type, java.util.List<Structure> bezTriples, int dimension, boolean fixUpAxis)
public double evaluate(int frame, int valuePart)
frame
- the frame for which the value is being calculatedvaluePart
- this param specifies wheather we should return the X, Y or Z part of the result value; it should have
one of the following values: X_VALUE - the X factor of the result Y_VALUE - the Y factor of the result
Z_VALUE - the Z factor of the resultpublic int getLastFrame()
public int getType()
public double getRadius(int bezierTripleIndex)
bezierTripleIndex
- index of the bezier triplepublic java.util.List<Vector3f> getControlPoints()
public java.lang.String toString()
toString
in class java.lang.Object