Packagecom.degrafa.geometry.splines
Classpublic class BezierSplineControl

Helper class used by various spline Geometry.



Public Properties
 PropertyDefined by
  CLOSED : Boolean
BezierSplineControl
  knots : Array
[write-only]
BezierSplineControl
  tension : Number
BezierSplineControl
Public Methods
 MethodDefined by
  
BezierSplineControl
  
construct():void
BezierSplineControl
  
draw(_s:Shape, _c:Number):void
BezierSplineControl
  
getCage(_i:Number):CubicCage
BezierSplineControl
Property detail
CLOSEDproperty
public var CLOSED:Boolean
knotsproperty 
knots:Array  [write-only]Implementation
    public function set knots(value:Array):void
tensionproperty 
tension:Number  [read-write]Implementation
    public function get tension():Number
    public function set tension(value:Number):void
Constructor detail
BezierSplineControl()constructor
public function BezierSplineControl()
Method detail
construct()method
public function construct():void

draw()method 
public function draw(_s:Shape, _c:Number):void

Parameters
_s:Shape — - reference to Shape in which control cages are drawn
 
_c:Number — - hex color code for lines
getCage()method 
public function getCage(_i:Number):CubicCage

Parameters
_i:Number — - Control-cage index (i-th segment, not i-th knot), zero based

Returns
CubicCage — CubicCage - reference to control cage for cubic bezier curve at the specified segment.