edu.stanford.rsl.konrad.geometry.splines.capi
Class CAPIBSpline

java.lang.Object
  extended by com.graphbuilder.curve.Curve
      extended by com.graphbuilder.curve.ParametricCurve
          extended by com.graphbuilder.curve.BSpline
              extended by edu.stanford.rsl.konrad.geometry.splines.capi.CAPIBSpline

public class CAPIBSpline
extends com.graphbuilder.curve.BSpline


Field Summary
 
Fields inherited from class com.graphbuilder.curve.BSpline
NON_UNIFORM, UNIFORM_CLAMPED, UNIFORM_UNCLAMPED
 
Constructor Summary
CAPIBSpline(com.graphbuilder.curve.ControlPath cp, com.graphbuilder.curve.GroupIterator gi, double[] knot)
           
 
Method Summary
 double computeN(double u, int i)
           
 double distance(double[] plane, int num)
           
 double distanceFast(double[] plane, double u)
           
 void eval(double[] point)
           
 double[] evalFast(double t)
           
 
Methods inherited from class com.graphbuilder.curve.BSpline
appendTo, getDegree, getKnotVector, getKnotVectorType, getSampleLimit, getUseDefaultInterval, resetMemory, setDegree, setInterval, setKnotVector, setKnotVectorType, setSampleLimit, setUseDefaultInterval, t_max, t_min
 
Methods inherited from class com.graphbuilder.curve.Curve
getConnect, getControlPath, getGroupIterator, setConnect, setControlPath, setGroupIterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAPIBSpline

public CAPIBSpline(com.graphbuilder.curve.ControlPath cp,
                   com.graphbuilder.curve.GroupIterator gi,
                   double[] knot)
Method Detail

eval

public void eval(double[] point)
Overrides:
eval in class com.graphbuilder.curve.BSpline

evalFast

public double[] evalFast(double t)

distanceFast

public double distanceFast(double[] plane,
                           double u)

distance

public double distance(double[] plane,
                       int num)

computeN

public double computeN(double u,
                       int i)