Packagecom.degrafa.utilities.math
Classpublic class CatmullRomUtility
InheritanceCatmullRomUtility Inheritance CatmullRom



Public Properties
 PropertyDefined by
 Inheritedclosed : Boolean
CatmullRom
 Inheritedknots : Array
CatmullRom
 Inheritedtangent : String
CatmullRom
 Inheritedtype : String
CatmullRom
Protected Properties
 PropertyDefined by
  __arcLength : Number
CatmullRomUtility
 Inherited__coef : Array
CatmullRom
 Inherited__index : Number
CatmullRom
  __integral : Gauss
CatmullRomUtility
 Inherited__invalidate : Boolean
CatmullRom
 Inherited__isClosed : Boolean
CatmullRom
 Inherited__knots : Number
CatmullRom
 Inherited__localParam : Number
CatmullRom
  __param : String
CatmullRomUtility
 Inherited__prevIndex : Number
CatmullRom
 Inherited__s : Number
CatmullRom
  __spline : CubicSpline
CatmullRomUtility
 Inherited__t : Number
CatmullRom
 Inherited__tangent : String
CatmullRom
 Inherited__theKnots : Array
CatmullRom
 Inherited__x : Array
CatmullRom
 Inherited__xHold : Number
CatmullRom
 Inherited__y : Array
CatmullRom
 Inherited__yHold : Number
CatmullRom
Public Methods
 MethodDefined by
  
CatmullRomUtility() - Construct a new Catmull-Rom spline
CatmullRomUtility
 Inherited
addControlPoint(_xCoord:Number, _yCoord:Number):void
addControlPoint - Add a control point
CatmullRom
  
arcLength():Number
arcLength Estimate arc-length of the entire curve by numerical integration
CatmullRomUtility
  
arcLengthAt(_t:Number):Number
arcLengthAt Return arc-length of curve segment on [0,_t].
CatmullRomUtility
 Inherited
derivative(_x:Number):Number
CatmullRom
 Inherited
eval(_x:Number):Number
CatmullRom
 Inherited
getCoef(_segment:uint):Object
CatmullRom
 Inherited
getControlPoint(_i:uint):Object
CatmullRom
 Inherited
getX(_t:Number):Number
getX - Return x-coordinate for a given t
CatmullRom
 Inherited
getXPrime(_t:Number):Number
getXPrime - Return dx/dt for a given t
CatmullRom
 Inherited
getY(_t:Number):Number
getY - Return y-coordinate for a given t
CatmullRom
 Inherited
getYPrime(_t:Number):Number
getYPrime - Return dy/dt for a given t
CatmullRom
  
reset():void
CatmullRomUtility
 Inherited
setOuterPoint(_flag:String, _xCoord:Number, _yCoord:Number):void
setOuterPoint - Add control point outside the knot range
CatmullRom
 Inherited
tAtKnot(_k:Number):Number
tAtKnot - Return t-value at a particular knot index
CatmullRom
Protected Methods
 MethodDefined by
 Inherited
CatmullRom
 Inherited
CatmullRom
 Inherited
CatmullRom
  
__integrand(_t:Number):Number
CatmullRomUtility
  
CatmullRomUtility
 Inherited
__segment():void
CatmullRom
  
__setParam(_t:Number):void
CatmullRomUtility
Public Constants
 ConstantDefined by
 InheritedARC_LENGTH : String = "arclength"
[static]
CatmullRom
 InheritedAUTO : String = "auto"
[static]
CatmullRom
 InheritedEXPLICIT : String = "explicit"
[static]
CatmullRom
 InheritedFIRST : String = "first"
[static]
CatmullRom
 InheritedLAST : String = "last"
[static]
CatmullRom
 InheritedUNIFORM : String = "uniform"
[static]
CatmullRom
Property detail
__arcLengthproperty
protected var __arcLength:Number
__integralproperty 
protected var __integral:Gauss
__paramproperty 
protected var __param:String
__splineproperty 
protected var __spline:CubicSpline
Constructor detail
CatmullRomUtility()constructor
public function CatmullRomUtility()

CatmullRomUtility() - Construct a new Catmull-Rom spline

Method detail
__integrand()method
protected function __integrand(_t:Number):NumberParameters
_t:Number

Returns
Number
__parameterize()method 
protected override function __parameterize():void
__setParam()method 
protected override function __setParam(_t:Number):voidParameters
_t:Number
arcLength()method 
public function arcLength():Number

arcLength Estimate arc-length of the entire curve by numerical integration

Returns
Number — Number: Estimate of total arc length of the spline over [0,1]
arcLengthAt()method 
public function arcLengthAt(_t:Number):Number

arcLengthAt Return arc-length of curve segment on [0,_t].

Parameters
_t:Number — - parameter value to describe partial curve whose arc-length is desired

Returns
Number — Number: Estimate of arc length of curve segment from t=0 to t=_t.
reset()method 
public override function reset():void