Class KBCubicSplineCurve
java.lang.Object
com.sun.j3d.utils.behaviors.interpolators.KBCubicSplineCurve
KBCubicSplineCurve is a container class that holds a number of
KBCubicSplineSegments
- Since:
- Java3D 1.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetSegment(int index) This method returns the KBCubicSplineSegments pointed to by indexfloatThis method returns the total length of the entire KBCubicSplineCurve motion path.voidThis method takes a list of spline segments to replace the existing set of KBCubicSplineSegments that comprise the current KBCubicSplineCurve motion path.
-
Field Details
-
numSegments
public int numSegments
-
-
Method Details
-
setSegments
This method takes a list of spline segments to replace the existing set of KBCubicSplineSegments that comprise the current KBCubicSplineCurve motion path.- Parameters:
s- the list of segments that comprise the complete motion path
-
getSegment
This method returns the KBCubicSplineSegments pointed to by index- Parameters:
index- the index of the KBCubicSplineSegment required- Returns:
- the KBCubicSplineSegment pointed to by index
-
getTotalCurveLength
public float getTotalCurveLength()This method returns the total length of the entire KBCubicSplineCurve motion path.- Returns:
- the length of the KBCubicSplineCurve motion path
-