| Method | Defined by | ||
|---|---|---|---|
| CatmullRomCurve3D | |||
|
addCurveVertex(p:Vertex):void
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 | ||
| CatmullRomCurve3D | () | constructor |
public function CatmullRomCurve3D()
| addCurveVertex | () | method |
public function addCurveVertex(p:Vertex):voidadd a new controlvertex to the curve
Parametersp:Vertex — control vertex
|
| finalize | () | method |
public function finalize(closed:Boolean = false, smoothness:Number = 0.5):voidcalulates the resulting curve
Parametersclosed:Boolean (default = false) |
|
smoothness:Number (default = 0.5) |
| getCurveAt | () | method |
public function getCurveAt(t:Number):Vertexreturns a vertex of the curve
Parameterst:Number — 0, end: 1
|
Vertex —
current vertex of the curve at t
|