| Package | com.flashdynamix.motion.vectors |
| Class | public class CurveLine |
| Inheritance | CurveLine Line |
| Implements | IVector |
| Property | Defined by | ||
|---|---|---|---|
![]() | length : int | Line | |
![]() | pts : Array
A list of Points defining the path
| Line | |
![]() | style : Array
The style parameters to use when the line is drawn via the Graphics.lineStyle method.
| Line | |
| through : Boolean = false
Whether the pts in the CurveLine will be used as control points or through points.
| CurveLine | ||
| Method | Defined by | ||
|---|---|---|---|
|
CurveLine(through:Boolean = false, ... pts)
| CurveLine | ||
![]() |
addAt(index:int, pt:Point):void
Adds a Point into the Line path at the specified index.
| Line | |
|
draw(vector:Graphics, rect:Rectangle):void
Draws the CurveLine path into the Graphics instance provided.
| CurveLine | ||
![]() |
index(index:int):Point
| Line | |
![]() |
push(pt:Point):void
Pushes a Point into the Line path.
| Line | |
![]() |
remove(pt:Point):void
Removes a Point from the Line path.
| Line | |
![]() |
removeAt(index:int, count:int = 1):void
Removes one or more Points at the specified index and count from the Line path.
| Line | |
![]() |
unshift(pt:Point):void
Unshifts a Point from the Line path.
| Line | |
| through | property |
public var through:Boolean = falseWhether the pts in the CurveLine will be used as control points or through points.
| CurveLine | () | constructor |
public function CurveLine(through:Boolean = false, ... pts)Parameters
through:Boolean (default = false) — Whether the pts in the CurveLine will be used as control points or through points.
|
|
... pts — A list of Points defining the CurveLine path.
|
| draw | () | method |
public override function draw(vector:Graphics, rect:Rectangle):voidDraws the CurveLine path into the Graphics instance provided.
Parametersvector:Graphics |
|
rect:Rectangle |