Curve

The ‘Curve’ class presents a data structure for representing a curve.

Summary
CurveThe ‘Curve’ class presents a data structure for representing a curve.
Variables
m_objStartA point object for storing information about the start point of this curve.
m_objEndA point object for storing information about the end point of this curve.
m_objControlA point object for storing information about the control point of this curve.
Functions and Properties
CurveConstructor.
startGets the starting point of the curve.
endGets the end point of the curve.
controlGets the control point of the curve.
drawUses the data stored by this object to draw a curve into the specified graphics object.
cloneClones this object.
disposePerforms any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc.
initInitializes this object.

Variables

m_objStart

protected var m_objStart: Point

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

m_objEnd

protected var m_objEnd: Point

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

m_objControl

protected var m_objControl: Point

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

Functions and Properties

Curve

public function Curve(objStart: Point,
objEnd: Point,
objControl: Point)

Constructor.

Parameters

param objStart The start point of the curve.
param objEnd The end point of the curve.
param objControl The control point of the curve. 

start

public function get start():Point

Gets the starting point of the curve.

Returns

A point object containing information about the point. 

end

public function get end():Point

Gets the end point of the curve.

Returns

A point object containing information about the point. 

control

public function get control():Point

Gets the control point of the curve.

Returns

A point object containing information about the point. 

draw

public function draw(objGraphics: Graphics):void

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

Parameters

param objGraphics The graphics object to draw the curve into. 

clone

public function clone():IPathSegment

Clones this object.

Returns

A new curve object that is a clone of this object. 

dispose

public function dispose():void

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

init

protected function init(objStart: Point,
objEnd: Point,
objControl: Point):void

Initializes this object.

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