Packageaway3d.paths
Classpublic class CubicPathSegment
InheritanceCubicPathSegment Inheritance Object
Implements IPathSegment

Defines a single segment of a cubic path

See also

away3d.paths.CubicPath


Public Properties
 PropertyDefined By
  control1 : Vector3D
The first control point.
CubicPathSegment
  control2 : Vector3D
The second control point.
CubicPathSegment
  end : Vector3D
The last anchor point.
CubicPathSegment
  start : Vector3D
The first anchor point.
CubicPathSegment
Public Methods
 MethodDefined By
  
CubicPathSegment(start:Vector3D, control1:Vector3D, control2:Vector3D, end:Vector3D)
CubicPathSegment
  
dispose():void
CubicPathSegment
  
getPointOnSegment(phase:Number, target:Vector3D = null):Vector3D
CubicPathSegment
  
toString():String
CubicPathSegment
Property Detail
control1property
public var control1:Vector3D

The first control point.

control2property 
public var control2:Vector3D

The second control point.

endproperty 
public var end:Vector3D

The last anchor point.

startproperty 
public var start:Vector3D

The first anchor point.

Constructor Detail
CubicPathSegment()Constructor
public function CubicPathSegment(start:Vector3D, control1:Vector3D, control2:Vector3D, end:Vector3D)

Parameters
start:Vector3D — The first anchor point.
 
control1:Vector3D — The first control point.
 
control2:Vector3D — The second control point.
 
end:Vector3D — The last anchor point.
Method Detail
dispose()method
public function dispose():void

getPointOnSegment()method 
public function getPointOnSegment(phase:Number, target:Vector3D = null):Vector3D

Parameters

phase:Number
 
target:Vector3D (default = null)

Returns
Vector3D
toString()method 
public function toString():String

Returns
String