Class KBKeyFrame
java.lang.Object
com.sun.j3d.utils.behaviors.interpolators.KBKeyFrame
This class represents a Key Frame that can be used for Kochanek-Bartels
(also called TCB or Tension-Continuity-Bias Splines) spline interpolation.
- Since:
- Java3D 1.2
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKBKeyFrame(float k, int l, javax.vecmath.Point3f pos, float hd, float pi, float bk, javax.vecmath.Point3f s, float t, float c, float b) Creates a key frame using the given inputs.KBKeyFrame(KBKeyFrame kf) -
Method Summary
Modifier and TypeMethodDescriptionvoiddebugPrint(String tag) Prints information comtained in this key frame
-
Field Details
-
position
public javax.vecmath.Point3f position -
heading
public float heading -
pitch
public float pitch -
bank
public float bank -
scale
public javax.vecmath.Point3f scale -
tension
public float tension -
continuity
public float continuity -
bias
public float bias -
knot
public float knot -
linear
public int linear
-
-
Constructor Details
-
KBKeyFrame
-
KBKeyFrame
public KBKeyFrame(float k, int l, javax.vecmath.Point3f pos, float hd, float pi, float bk, javax.vecmath.Point3f s, float t, float c, float b) Creates a key frame using the given inputs.- Parameters:
k- knot value for this key framel- the linear flag (0 - Spline Interp, 1, Linear Interppos- the position at the key framehd- the heading value at the key framepi- the pitch value at the key framebk- the bank value at the key frames- the scales at the key framet- tension (-1.0 invalid input: '<' t invalid input: '<' 1.0)c- continuity (-1.0 invalid input: '<' c invalid input: '<' 1.0)b- bias (-1.0 invalid input: '<' b invalid input: '<' 1.0)
-
-
Method Details
-
debugPrint
Prints information comtained in this key frame- Parameters:
tag- string tag for identifying debug message
-