Packageaway3d.animators.data
Classpublic class Path

Holds information about a single Path definition.

Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
Path
(aVectors:Array)
Creates a new Path object.
Path
  
add(cs:CurveSegment):void
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
Property detail
arrayproperty
array:Array  [read-only]

returns the Path elements array

Implementation
    public function get array():Array
aSegmentsproperty 
public var aSegments:Array

The array that contains the path definition.

averagedproperty 
averaged:Boolean  [read-only]

returns true if the averagePath handler is being used.

Implementation
    public function get averaged():Boolean
lengthproperty 
length:int  [read-only]

returns the length of the Path elements array

Implementation
    public function get length():int
smoothedproperty 
smoothed:Boolean  [read-only]

returns true if the smoothPath handler is being used.

Implementation
    public function get smoothed():Boolean
worldAxisproperty 
public var worldAxis:Number3D

The worldAxis of reference

Constructor detail
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
Init Parameters
Method detail
add()method
public function add(cs:CurveSegment):void

adds a CurveSegment to the path

Parameters
cs:CurveSegment

See also

CurveSegment:
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.

Parameters
index: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

Wiki link
Click to go to the wiki page for 'away3d.animators.data.Path'

Code examples

Comments