Curve |
The ‘Curve’ class presents a data structure for representing a curve.
Curve | The ‘Curve’ class presents a data structure for representing a curve. |
Variables | |
m_objStart | A point object for storing information about the start point of this curve. |
m_objEnd | A point object for storing information about the end point of this curve. |
m_objControl | A point object for storing information about the control point of this curve. |
Functions and Properties | |
Curve | Constructor. |
start | Gets the starting point of the curve. |
end | Gets the end point of the curve. |
control | Gets the control point of the curve. |
draw | Uses the data stored by this object to draw a curve into the specified graphics object. |
clone | Clones this object. |
dispose | Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc. |
init | Initializes this object. |
A point object for storing information about the start point of this curve.
protected var m_objStart: Point
A point object for storing information about the end point of this curve.
protected var m_objEnd: Point
A point object for storing information about the control point of this curve.
protected var m_objControl: Point
Constructor.
public function Curve( objStart: Point, objEnd: Point, objControl: Point )
Gets the starting point of the curve.
public function get start():Point
Gets the end point of the curve.
public function get end():Point
Gets the control point of the curve.
public function get control():Point
Uses the data stored by this object to draw a curve into the specified graphics object.
public function draw( objGraphics: Graphics ):void
Clones this object.
public function clone():IPathSegment
Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc.
public function dispose():void
Initializes this object.
protected function init( objStart: Point, objEnd: Point, objControl: Point ):void