Packagecom.boostworthy.geom
Classpublic class Curve
ImplementsIPathSegment
SubclassesLine

The 'Curve' class presents a data structure for representing a curve.



Public Properties
 PropertyDefined by
  control : Point
[read-only] Gets the control point of the curve.
Curve
  end : Point
[read-only] Gets the end point of the curve.
Curve
  start : Point
[read-only] Gets the starting point of the curve.
Curve
Protected Properties
 PropertyDefined by
  m_objControl : Point
A point object for storing information about the control point of this curve.
Curve
  m_objEnd : Point
A point object for storing information about the end point of this curve.
Curve
  m_objStart : Point
A point object for storing information about the start point of this curve.
Curve
Public Methods
 MethodDefined by
  
Curve(objStart:Point, objEnd:Point, objControl:Point)
Constructor.
Curve
  
Clones this object.
Curve
  
dispose():void
Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to 'null', etc.
Curve
  
draw(objGraphics:Graphics):void
Uses the data stored by this object to draw a curve into the specified graphics object.
Curve
Protected Methods
 MethodDefined by
  
init(objStart:Point, objEnd:Point, objControl:Point):void
Initializes this object.
Curve
Property detail
controlproperty
control:Point  [read-only]

Gets the control point of the curve.

Implementation
    public function get control():Point
endproperty 
end:Point  [read-only]

Gets the end point of the curve.

Implementation
    public function get end():Point
m_objControlproperty 
protected var m_objControl:Point

A point object for storing information about the control point of this curve.

m_objEndproperty 
protected var m_objEnd:Point

A point object for storing information about the end point of this curve.

m_objStartproperty 
protected var m_objStart:Point

A point object for storing information about the start point of this curve.

startproperty 
start:Point  [read-only]

Gets the starting point of the curve.

Implementation
    public function get start():Point
Constructor detail
Curve()constructor
public function Curve(objStart:Point, objEnd:Point, objControl:Point)

Constructor.

Parameters
objStart:Point — The start point of the curve.
 
objEnd:Point — The end point of the curve.
 
objControl:Point — The control point of the curve.
Method detail
clone()method
public function clone():IPathSegment

Clones this object.

Returns
IPathSegment — A new curve object that is a clone of this object.
dispose()method 
public function dispose():void

Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to 'null', etc.

draw()method 
public function draw(objGraphics:Graphics):void

Uses the data stored by this object to draw a curve into the specified graphics object.

Parameters
objGraphics:Graphics — The graphics object to draw the curve into.
init()method 
protected function init(objStart:Point, objEnd:Point, objControl:Point):void

Initializes this object.

Parameters
objStart:Point
 
objEnd:Point
 
objControl:Point