Class CubicSplineCurve
java.lang.Object
com.sun.j3d.utils.behaviors.interpolators.CubicSplineCurve
CubicSplineCurve is a container class that holds a number of
cubicSplineSegments
- Since:
- Java3D 1.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetSegment
(int index) This method returns the CubicSplineSegments pointed to by indexfloat
This method returns the total length of the entire CubicSplineCurve motion path.void
This method takes a list of spline segments to replace the existing set of CubicSplineSegments that comprise the current CubicSplineCurve 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 CubicSplineSegments that comprise the current CubicSplineCurve motion path.- Parameters:
s
- the list of segments that comprise the complete motion path
-
getSegment
This method returns the CubicSplineSegments pointed to by index- Parameters:
index
- the index of the CubicSplineSegment required- Returns:
- index the CubicSplineSegment pointed to by index
-
getTotalCurveLength
public float getTotalCurveLength()This method returns the total length of the entire CubicSplineCurve motion path.- Returns:
- the length of the CubicSplineCurve motion path
-