Packageaway3d.animators.utils
Classpublic class PathUtils

Geometry handlers for classes using Path objects

Public Methods
 MethodDefined by
  
getNewPoint(x0:Number = 0, y0:Number = 0, z0:Number = 0, aX:Number = 0, aY:Number = 0, aZ:Number = 0, x1:Number = 0, y1:Number = 0, z1:Number = 0, t:Number = 0):Number3D
[static]
PathUtils
  
getPointsOnCurve(_path:Path, subdivision:int):Array
[static]
PathUtils
  
getSegmentPoints(pStart:Number3D, pControl:Number3D, pEnd:Number3D, n:Number, last:Boolean):Array
[static]
PathUtils
  
[static]
PathUtils
  
step(startVal:Number3D, endVal:Number3D, subdivision:int):Array
[static]
PathUtils
Method detail
getNewPoint()method
public static function getNewPoint(x0:Number = 0, y0:Number = 0, z0:Number = 0, aX:Number = 0, aY:Number = 0, aZ:Number = 0, x1:Number = 0, y1:Number = 0, z1:Number = 0, t:Number = 0):Number3D Parameters
x0:Number (default = 0)
 
y0:Number (default = 0)
 
z0:Number (default = 0)
 
aX:Number (default = 0)
 
aY:Number (default = 0)
 
aZ:Number (default = 0)
 
x1:Number (default = 0)
 
y1:Number (default = 0)
 
z1:Number (default = 0)
 
t:Number (default = 0)

Returns
Number3D
getPointsOnCurve()method 
public static function getPointsOnCurve(_path:Path, subdivision:int):Array Parameters
_path:Path
 
subdivision:int

Returns
Array
getSegmentPoints()method 
public static function getSegmentPoints(pStart:Number3D, pControl:Number3D, pEnd:Number3D, n:Number, last:Boolean):Array Parameters
pStart:Number3D
 
pControl:Number3D
 
pEnd:Number3D
 
n:Number
 
last:Boolean

Returns
Array
rotatePoint()method 
public static function rotatePoint(aPoint:Number3D, rotation:Number3D):Number3D Parameters
aPoint:Number3D
 
rotation:Number3D

Returns
Number3D
step()method 
public static function step(startVal:Number3D, endVal:Number3D, subdivision:int):Array Parameters
startVal:Number3D
 
endVal:Number3D
 
subdivision:int

Returns
Array
Wiki link
Click to go to the wiki page for 'away3d.animators.utils.PathUtils'

Code examples

Comments