Package | away3d.animators.data |
Class | public class Path |
Property | Defined by | ||
---|---|---|---|
array : Array [read-only]
returns the Path elements array
| Path | ||
aSegments : Array
The array that contains the path definition.
| Path | ||
averaged : Boolean [read-only]
returns true if the averagePath handler is being used.
| Path | ||
length : int [read-only]
returns the length of the Path elements array
| Path | ||
smoothed : Boolean [read-only]
returns true if the smoothPath handler is being used.
| Path | ||
worldAxis : Number3D
The worldAxis of reference
| Path |
Method | Defined by | ||
---|---|---|---|
Path
(aVectors:Array)
Creates a new
Path object. | Path | ||
adds a CurveSegment to the path
| Path | ||
averagePath():void
handler will average the path using averages of the CurveSegments
note that this is not dynamic, the path values are overwrited
| Path | ||
removeSegment(index:int):void
removes a segment in the path according to id.
| Path | ||
smoothPath():void
handler will smooth the path using anchors as control vector of the CurveSegments
note that this is not dynamic, the CurveSegments values are overwrited
| Path |
array | property |
array:Array
[read-only]returns the Path elements array
Implementation public function get array():Array
aSegments | property |
public var aSegments:Array
The array that contains the path definition.
averaged | property |
averaged:Boolean
[read-only]returns true if the averagePath handler is being used.
Implementation public function get averaged():Boolean
length | property |
length:int
[read-only]returns the length of the Path elements array
Implementation public function get length():int
smoothed | property |
smoothed:Boolean
[read-only]returns true if the smoothPath handler is being used.
Implementation public function get smoothed():Boolean
worldAxis | property |
public var worldAxis:Number3D
The worldAxis of reference
Path | () | constructor |
public function Path(aVectors:Array)
Parameters
aVectors:Array — aVectors An array of a series of number3D's organized in the following fashion. [a,b,c,a,b,c etc...] a = v1, b=vc (control point), c = v2
|
add | () | method |
public function add(cs:CurveSegment):void
adds a CurveSegment to the path
Parameterscs:CurveSegment |
See also
averagePath | () | method |
public function averagePath():void
handler will average the path using averages of the CurveSegments note that this is not dynamic, the path values are overwrited
removeSegment | () | method |
public function removeSegment(index:int):void
removes a segment in the path according to id.
Parametersindex:int |
smoothPath | () | method |
public function smoothPath():void
handler will smooth the path using anchors as control vector of the CurveSegments note that this is not dynamic, the CurveSegments values are overwrited