Packageaway3d.paths
Interfacepublic interface IPathSegment
Implementors CubicPathSegment, QuadraticPathSegment



Public Methods
 MethodDefined By
  
dispose():void
Destroys the segment
IPathSegment
  
getPointOnSegment(phase:Number, target:Vector3D = null):Vector3D
Calculates the position of the curve on this segment.
IPathSegment
Method Detail
dispose()method
public function dispose():void

Destroys the segment

getPointOnSegment()method 
public function getPointOnSegment(phase:Number, target:Vector3D = null):Vector3D

Calculates the position of the curve on this segment.

Parameters

phase:Number — The ratio between the start and end point.
 
target:Vector3D (default = null) — An optional target to store the calculation, to prevent creating a new Vector3D object.

Returns
Vector3D