Package | away3d.paths |
Class | public class QuadraticPath |
Inheritance | QuadraticPath SegmentedPathBase Object |
Implements | IPath |
Property | Defined By | ||
---|---|---|---|
averaged : Boolean [read-only]
returns true if the averagePath handler is being used. | QuadraticPath | ||
numSegments : uint [read-only]
The number of segments in the Path
| SegmentedPathBase | ||
pointData : Vector.<Vector3D> [write-only] | SegmentedPathBase | ||
segments : Vector.<IPathSegment> [read-only]
returns the Vector.<PathSegment> holding the elements (PathSegment) of the path
| SegmentedPathBase | ||
smoothed : Boolean [read-only]
returns true if the smoothPath handler is being used. | QuadraticPath |
Method | Defined By | ||
---|---|---|---|
QuadraticPath(data:Vector.<Vector3D> = null)
Creates a new Path object. | QuadraticPath | ||
addSegment(segment:IPathSegment):void | SegmentedPathBase | ||
averagePath():void
handler will average the path using averages of the PathSegments
note that this is not dynamic, the path values are overwrited
| QuadraticPath | ||
continuousCurve(points:Vector.<Vector3D>, closed:Boolean = false):void | QuadraticPath | ||
dispose():void | SegmentedPathBase | ||
getPointOnCurve(t:Number, target:Vector3D = null):Vector3D | SegmentedPathBase | ||
getPointsOnCurvePerSegment(subdivision:uint):Vector.<Vector3D> | SegmentedPathBase | ||
getSegmentAt(index:uint):IPathSegment
returns a given PathSegment from the path (PathSegment holds 3 Vector3D's)
| SegmentedPathBase | ||
removeSegment(index:uint, join:Boolean = false):void
removes a segment in the path according to id. | SegmentedPathBase | ||
smoothPath():void
handler will smooth the path using anchors as control vector of the PathSegments
note that this is not dynamic, the PathSegments values are overwrited
| QuadraticPath |
Method | Defined By | ||
---|---|---|---|
createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment [override] | QuadraticPath | ||
getSegmentPoints(segment:IPathSegment, n:uint, last:Boolean):Vector.<Vector3D> | SegmentedPathBase | ||
[override] | QuadraticPath |
averaged | property |
averaged:Boolean
[read-only] returns true if the averagePath handler is being used.
public function get averaged():Boolean
smoothed | property |
smoothed:Boolean
[read-only] returns true if the smoothPath handler is being used.
public function get smoothed():Boolean
QuadraticPath | () | Constructor |
public function QuadraticPath(data:Vector.<Vector3D> = null)
Creates a new Path
object.
data:Vector.<Vector3D> (default = null ) — [optional] An array of a series of Vector3D's organized in the following fashion. [a,b,c,a,b,c etc...] a = pEnd, b=pControl (control point), c = v2
|
averagePath | () | method |
public function averagePath():void
handler will average the path using averages of the PathSegments note that this is not dynamic, the path values are overwrited
continuousCurve | () | method |
public function continuousCurve(points:Vector.<Vector3D>, closed:Boolean = false):void
Parameters
points:Vector.<Vector3D> | |
closed:Boolean (default = false )
|
createSegmentFromArrayEntry | () | method |
override protected function createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment
Parameters
data:Vector.<Vector3D> | |
offset:uint |
IPathSegment |
smoothPath | () | method |
public function smoothPath():void
handler will smooth the path using anchors as control vector of the PathSegments note that this is not dynamic, the PathSegments values are overwrited
stitchSegment | () | method |
override protected function stitchSegment(start:IPathSegment, middle:IPathSegment, end:IPathSegment):void
Parameters
start:IPathSegment | |
middle:IPathSegment | |
end:IPathSegment |