Holds information about a single Path definition. DEBUG OPTION OUT AT THIS TIME OF DEV

Constructor

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

Creates a new Path object.

Parameters:

aVectors

[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

Variables

read onlyaveraged:Bool

returns true if the averagePath handler is being used.

read onlysmoothed:Bool

returns true if the smoothPath handler is being used.

Methods

averagePath():Void

handler will average the path using averages of the PathSegments note that this is not dynamic, the path values are overwrited

@:value({ closed : false })continuousCurve(points:Vector<Vector3D>, closed:Bool = false):Void

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

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