Packageflare.core
Classpublic class Spline3D
InheritanceSpline3D Inheritance Object

The Spline3D class represents a 3d spline.



Public Properties
 PropertyDefined By
  closed : Boolean
Returns or sets whether this is a closed spline.
Spline3D
  knots : Vector.<Knot3D>
Knot3D-type vector with the spline knots.
Spline3D
Public Methods
 MethodDefined By
  
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
Property Detail
closedproperty
closed:Boolean

Returns or sets whether this is a closed spline. In that case, the last Knot3D will be joined to the first.


Implementation
    public function get closed():Boolean
    public function set closed(value:Boolean):void
knotsproperty 
public var knots:Vector.<Knot3D>

Knot3D-type vector with the spline knots.

Constructor Detail
Spline3D()Constructor
public function Spline3D()

Creates a new spline.

Method Detail
clone()method
public function clone():Spline3D

Creates a copy of the spline.

Returns
Spline3D — The new copy of the spline.
getPoint()method 
public function getPoint(value:Number, out:Vector3D = null):Vector3D

Returns 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.

Returns
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):Vector3D

Returns 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.

Returns
Vector3D — If an 'out' value has been specified, the same object is returned. Otherwise, a new vector with the position is returned.