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

Constructor

@:value({ data : null })new(?data:Vector<Vector3D>)

Creates a new CubicPath instance.

Parameters:

data

See pointData

Inherited Variables

Defined by SegmentedPathBase

read onlynumSegments:Int

write onlypointData:Vector<Vector3D>

read onlysegments:Vector<IPathSegment>

Inherited Methods

Defined by SegmentedPathBase

addSegment(segment:IPathSegment):Void

dispose():Void

@:value({ target : null })getPointOnCurve(t:Float, ?target:Vector3D):Vector3D

getPointsOnCurvePerSegment(subdivision:Int):Vector<Vector<Vector3D>>

getSegmentAt(index:Int):IPathSegment

returns a given PathSegment from the path (PathSegment holds 3 Vector3D's)

Parameters:

indice

uint. the indice of a given PathSegment

Returns:

given PathSegment from the path

@:value({ join : false })removeSegment(index:Int, join:Bool = false):Void

removes a segment in the path according to id.

Parameters:

index

int. The index in path of the to be removed curvesegment

join

Boolean. If true previous and next segments coordinates are reconnected