| Package | flare.core |
| Class | public class Spline3D |
| Inheritance | Spline3D Object |
| Property | Defined By | ||
|---|---|---|---|
| closed : Boolean
Returns or sets whether this is a closed spline. | Spline3D | ||
| knots : Vector.<Knot3D>
Knot3D-type vector with the spline knots. | Spline3D | ||
| Method | Defined By | ||
|---|---|---|---|
Spline3D()
Creates a new spline. | Spline3D | ||
Creates a copy of the spline. | Spline3D | ||
getPoint(value:Number, out:Vector3D = null):Vector3D
Returns the position on the spline depending on the “value” parameter. | Spline3D | ||
getTangent(value:Number, out:Vector3D = null):Vector3D
Returns the direction on the spline in a given position. | Spline3D | ||
| closed | property |
closed:BooleanReturns or sets whether this is a closed spline. In that case, the last Knot3D will be joined to the first.
public function get closed():Boolean public function set closed(value:Boolean):void| knots | property |
public var knots:Vector.<Knot3D>Knot3D-type vector with the spline knots.
| Spline3D | () | Constructor |
public function Spline3D()Creates a new spline.
| clone | () | method |
public function clone():Spline3DCreates a copy of the spline.
ReturnsSpline3D — The new copy of the spline.
|
| getPoint | () | method |
public function getPoint(value:Number, out:Vector3D = null):Vector3DReturns the position on the spline depending on the “value” parameter.
Parameters
value:Number — 0 to 1 value that represents the position in time on the spline.
| |
out:Vector3D (default = null) — Vector where the position will be returned.
|
Vector3D — If an 'out' value has been specified, the same object is returned. Otherwise, a new vector with the position is returned.
|
| getTangent | () | method |
public function getTangent(value:Number, out:Vector3D = null):Vector3DReturns the direction on the spline in a given position.
Parameters
value:Number — 0 to 1 value that represents the position in time on the spline.
| |
out:Vector3D (default = null) — Vector where the direction will be returned.
|
Vector3D — If an 'out' value has been specified, the same object is returned. Otherwise, a new vector with the position is returned.
|