| Package | com.degrafa.geometry.splines |
| Class | public class NaturalCubicSpline |
| Inheritance | NaturalCubicSpline BasicSpline Geometry DegrafaObject |
Default MXML Propertypoints
| Method | Defined by | ||
|---|---|---|---|
|
NaturalCubicSpline(_myPoints:Array = null)
| NaturalCubicSpline | ||
![]() |
addControlPoint(x:Number, y:Number):void
Adds a new knot to the spline.
| BasicSpline | |
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| DegrafaObject | |
![]() |
addItem(_x:Number, _y:Number):void
| BasicSpline | |
![]() |
angleAt(t:Number):Number
Returns the angle of a point t(0-1) on the path.
| Geometry | |
![]() |
approximateInterval(val1:Number, val2:Number):Array
return an array of quad Bezier approximations to the spline over the specified interval (cartesian or parameteric) - returns null if the
values are outside the knot range for a cartesian spline or outside [0,1] for a parametric spline.
| BasicSpline | |
![]() |
calculateLayout(childBounds:Rectangle = null):void
Performs the specific layout work required by this Geometry.
| BasicSpline | |
![]() |
clearGraphicsTargets():void
Clears all graphics targets specified in the graphicsTarget array.
| Geometry | |
|
derivative(_x:Number):Number
evaluate a cartesian spline's first derivative at the specified x-coordinate
| NaturalCubicSpline | ||
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
| DegrafaObject | |
![]() |
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects.
| BasicSpline | |
![]() |
drawToTargets():void
Requests a draw for each graphics target specified in the graphicsTarget array.
| Geometry | |
![]() |
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
| Geometry | |
|
eval(_x:Number):Number
evaluate a cartesian spline at the specified x-coordinate
| NaturalCubicSpline | ||
![]() |
getX(_t:Number):Number
| BasicSpline | |
![]() |
getXPrime(_t:Number):Number
| BasicSpline | |
![]() |
getY(_t:Number):Number
| BasicSpline | |
![]() |
getYPrime(_t:Number):Number
| BasicSpline | |
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
initFill(graphics:Graphics, rc:Rectangle):void
Initialise the fill for this geometry object.
| Geometry | |
![]() |
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
| DegrafaObject | |
![]() |
initStroke(graphics:Graphics, rc:Rectangle):void
Initialise the stroke for this geometry object.
| Geometry | |
![]() |
pointAt(t:Number):Point
Returns the point at t(0-1) on this object.
| Geometry | |
![]() |
preDraw():void
Performs any pre calculation that is required to successfully render
this element.
| BasicSpline | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
styleChanged(styleProp:String):void
Called when the value of a style property is changed.
| Geometry | |
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| DegrafaObject | |
| NaturalCubicSpline | () | constructor |
public function NaturalCubicSpline(_myPoints:Array = null)Parameters
_myPoints:Array (default = null) |
| derivative | () | method |
public override function derivative(_x:Number):Numberevaluate a cartesian spline's first derivative at the specified x-coordinate
Parameters_x:Number |
Number |
| eval | () | method |
public override function eval(_x:Number):Numberevaluate a cartesian spline at the specified x-coordinate
Parameters_x:Number |
Number |