Packagecom.degrafa.utilities.math
Classpublic class CubicSpline
SubclassesPlottableCubicSpline



Public Properties
 PropertyDefined by
  knotCount : Number
[read-only]
CubicSpline
  knots : Array
[read-only]
CubicSpline
Protected Properties
 PropertyDefined by
  __b : Array
CubicSpline
  __delta : Number
CubicSpline
  __h : Array
CubicSpline
  __hInv : Array
CubicSpline
  __invalidate : Boolean
CubicSpline
  __knots : Number
CubicSpline
  __t : Array
CubicSpline
  __u : Array
CubicSpline
  __v : Array
CubicSpline
  __y : Array
CubicSpline
  __z : Array
CubicSpline
Public Methods
 MethodDefined by
  
CubicSpline() Construct a new Cubic Spline instance.
CubicSpline
  
addControlPoint(_xKnot:Number, _yKnot:Number):void
addControlPoint Add/Insert a knot in a manner that maintains non-overlapping intervals.
CubicSpline
  
deleteAllKnots Delete all knots
CubicSpline
  
eval(_xKnot:Number):Number
eval Evaluate spline at a given x-coordinate
CubicSpline
  
moveControlPoint(_indx:uint, _xKnot:Number, _yKnot:Number):void
moveControlPoint Move knot at the specified index within its interval
CubicSpline
  
removeKnotAtX(_xKnot:Number):void
removeKnotAtX Delete knot at a given x-coordinate
CubicSpline
  
removePointAt(_indx:uint):void
removePointAt Delete knot at the specified index
CubicSpline
Protected Methods
 MethodDefined by
  
__computeZ():void
CubicSpline
  
__insert(_xKnot:Number, _yKnot:Number, _indx:Number):void
CubicSpline
  
__remove(_indx:Number):void
CubicSpline
Protected Constants
 ConstantDefined by
  ONE_SIXTH : Number = 0.16666666666666666
[static]
CubicSpline
Property detail
__bproperty
protected var __b:Array
__deltaproperty 
protected var __delta:Number
__hproperty 
protected var __h:Array
__hInvproperty 
protected var __hInv:Array
__invalidateproperty 
protected var __invalidate:Boolean
knotCountproperty 
knotCount:Number  [read-only]Implementation
    public function get knotCount():Number
__knotsproperty 
protected var __knots:Number
knotsproperty 
knots:Array  [read-only]Implementation
    public function get knots():Array
__tproperty 
protected var __t:Array
__uproperty 
protected var __u:Array
__vproperty 
protected var __v:Array
__yproperty 
protected var __y:Array
__zproperty 
protected var __z:Array
Constructor detail
CubicSpline()constructor
public function CubicSpline()

CubicSpline() Construct a new Cubic Spline instance.

Method detail
__computeZ()method
protected function __computeZ():void
__insert()method 
protected function __insert(_xKnot:Number, _yKnot:Number, _indx:Number):voidParameters
_xKnot:Number
 
_yKnot:Number
 
_indx:Number
__remove()method 
protected function __remove(_indx:Number):voidParameters
_indx:Number
addControlPoint()method 
public function addControlPoint(_xKnot:Number, _yKnot:Number):void

addControlPoint Add/Insert a knot in a manner that maintains non-overlapping intervals. This method rearranges knot order, if necessary, to maintain non-overlapping intervals.

Parameters
_xKnot:Number — - x-coordinate of knot to add
 
_yKnot:Number — - y-coordinate of knot to add
deleteAllKnots()method 
public function deleteAllKnots():void

deleteAllKnots Delete all knots

eval()method 
public function eval(_xKnot:Number):Number

eval Evaluate spline at a given x-coordinate

Parameters
_xKnot:Number — - x-coordinate to evaluate spline

Returns
Number — Number: - NaN if there are no knots - y[0] if there is only one knot - Spline value at the input x-coordinate, if there are two or more knots
moveControlPoint()method 
public function moveControlPoint(_indx:uint, _xKnot:Number, _yKnot:Number):void

moveControlPoint Move knot at the specified index within its interval

Parameters
_indx:uint — - index of knot to replace
 
_xKnot:Number — - new x-coordinate
 
_yKnot:Number — - new y-coordinate
removeKnotAtX()method 
public function removeKnotAtX(_xKnot:Number):void

removeKnotAtX Delete knot at a given x-coordinate

Parameters
_xKnot:Number — - x-coordinate of knot to delete
removePointAt()method 
public function removePointAt(_indx:uint):void

removePointAt Delete knot at the specified index

Parameters
_indx:uint — - index of knot to delete
Constant detail
ONE_SIXTHconstant
protected static const ONE_SIXTH:Number = 0.16666666666666666