Packagede.nulldesign.nd3d.geom
Classpublic class CatmullRomCurve3D

A 3-dimensional Catmullrom curve



Public Methods
 MethodDefined by
  
CatmullRomCurve3D
  
add a new controlvertex to the curve
CatmullRomCurve3D
  
finalize(closed:Boolean = false, smoothness:Number = 0.5):void
calulates the resulting curve
CatmullRomCurve3D
  
getCurveAt(t:Number):Vertex
returns a vertex of the curve
CatmullRomCurve3D
Constructor detail
CatmullRomCurve3D()constructor
public function CatmullRomCurve3D()
Method detail
addCurveVertex()method
public function addCurveVertex(p:Vertex):void

add a new controlvertex to the curve

Parameters
p:Vertex — control vertex
finalize()method 
public function finalize(closed:Boolean = false, smoothness:Number = 0.5):void

calulates the resulting curve

Parameters
closed:Boolean (default = false)
 
smoothness:Number (default = 0.5)
getCurveAt()method 
public function getCurveAt(t:Number):Vertex

returns a vertex of the curve

Parameters
t:Number — 0, end: 1

Returns
Vertex — current vertex of the curve at t