Packageaway3d.paths
Classpublic class CubicPath
InheritanceCubicPath Inheritance SegmentedPathBase Inheritance Object
Implements IPath

Defines a cubic path. Each segment of the path has two control points as opposed to CubicPathSegment which being quadratic, has one control point.

See also

away3d.animators.CubicPathAnimator
away3d.paths.CubicPathSegment


Public Properties
 PropertyDefined By
 InheritednumSegments : uint
[read-only] The number of segments in the Path
SegmentedPathBase
 InheritedpointData : Vector.<Vector3D>
[write-only]
SegmentedPathBase
 Inheritedsegments : Vector.<IPathSegment>
[read-only] returns the Vector.<PathSegment> holding the elements (PathSegment) of the path
SegmentedPathBase
Protected Properties
 PropertyDefined By
 Inherited_segments : Vector.<IPathSegment>
SegmentedPathBase
Public Methods
 MethodDefined By
  
CubicPath(data:Vector.<Vector3D> = null)
Creates a new CubicPath instance.
CubicPath
 Inherited
addSegment(segment:IPathSegment):void
SegmentedPathBase
 Inherited
dispose():void
SegmentedPathBase
 Inherited
getPointOnCurve(t:Number, target:Vector3D = null):Vector3D
SegmentedPathBase
 Inherited
getPointsOnCurvePerSegment(subdivision:uint):Vector.<Vector3D>
SegmentedPathBase
 Inherited
returns a given PathSegment from the path (PathSegment holds 3 Vector3D's)
SegmentedPathBase
 Inherited
removeSegment(index:uint, join:Boolean = false):void
removes a segment in the path according to id.
SegmentedPathBase
Protected Methods
 MethodDefined By
  
createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment
[override]
CubicPath
 Inherited
getSegmentPoints(segment:IPathSegment, n:uint, last:Boolean):Vector.<Vector3D>
SegmentedPathBase
  
[override]
CubicPath
Constructor Detail
CubicPath()Constructor
public function CubicPath(data:Vector.<Vector3D> = null)

Creates a new CubicPath instance.

Parameters
data:Vector.<Vector3D> (default = null) — See pointData
Method Detail
createSegmentFromArrayEntry()method
override protected function createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment

Parameters

data:Vector.<Vector3D>
 
offset:uint

Returns
IPathSegment
stitchSegment()method 
override protected function stitchSegment(start:IPathSegment, middle:IPathSegment, end:IPathSegment):void

Parameters

start:IPathSegment
 
middle:IPathSegment
 
end:IPathSegment