edu.jhu.ece.iacl.jist.structures.geom
Class PolySpline

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.PolySpline
All Implemented Interfaces:
Curve

public class PolySpline
extends java.lang.Object
implements Curve

The Class PolySpline.


Constructor Summary
PolySpline(int degree)
          Instantiates a new poly spline.
 
Method Summary
 void computeCoefficients(Point3f[] controlPoints, double[] s)
          Compute coefficients.
 Point3f[] getCurve()
          Gets the curve.
 Point3f[] getCurve(double spacing)
          Gets the curve.
 Point3f[] getCurve(int steps)
          Gets the curve.
 double getLength()
          Gets the length.
 double getValue()
          Gets the value.
 Point3f interpolate(double s)
          Interpolate.
 void setLength(double length)
          Sets the length.
 void setValue(double value)
          Sets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolySpline

public PolySpline(int degree)
Instantiates a new poly spline.

Parameters:
degree - the degree
Method Detail

setLength

public void setLength(double length)
Sets the length.

Parameters:
length - the new length

getLength

public double getLength()
Gets the length.

Returns:
the length

setValue

public void setValue(double value)
Sets the value.

Parameters:
value - the new value

getValue

public double getValue()
Description copied from interface: Curve
Gets the value.

Specified by:
getValue in interface Curve
Returns:
the value

getCurve

public Point3f[] getCurve()
Description copied from interface: Curve
Gets the curve.

Specified by:
getCurve in interface Curve
Returns:
the curve

getCurve

public Point3f[] getCurve(double spacing)
Gets the curve.

Parameters:
spacing - the spacing
Returns:
the curve

getCurve

public Point3f[] getCurve(int steps)
Gets the curve.

Parameters:
steps - the steps
Returns:
the curve

interpolate

public Point3f interpolate(double s)
Interpolate.

Parameters:
s - the s
Returns:
the point3f

computeCoefficients

public void computeCoefficients(Point3f[] controlPoints,
                                double[] s)
Compute coefficients.

Parameters:
controlPoints - the control points
s - the s