Package | away3d.paths |
Class | public class CubicPath |
Inheritance | CubicPath SegmentedPathBase Object |
Implements | IPath |
CubicPathSegment
which being quadratic, has one control point.
See also
Method | Defined By | ||
---|---|---|---|
CubicPath(data:Vector.<Vector3D> = null)
Creates a new CubicPath instance. | CubicPath | ||
addSegment(segment:IPathSegment):void | SegmentedPathBase | ||
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 |
Method | Defined By | ||
---|---|---|---|
createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment [override] | CubicPath | ||
getSegmentPoints(segment:IPathSegment, n:uint, last:Boolean):Vector.<Vector3D> | SegmentedPathBase | ||
[override] | CubicPath |
CubicPath | () | Constructor |
public function CubicPath(data:Vector.<Vector3D> = null)
Creates a new CubicPath instance.
Parametersdata:Vector.<Vector3D> (default = null ) — See pointData
|
createSegmentFromArrayEntry | () | method |
override protected function createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment
Parameters
data:Vector.<Vector3D> | |
offset:uint |
IPathSegment |
stitchSegment | () | method |
override protected function stitchSegment(start:IPathSegment, middle:IPathSegment, end:IPathSegment):void
Parameters
start:IPathSegment | |
middle:IPathSegment | |
end:IPathSegment |