Packageaway3d.primitives
Classpublic class LineSegment
InheritanceLineSegment Inheritance Segment Inheritance Object

A Line Segment primitive.



Public Properties
 PropertyDefined By
 Inheritedend : Vector3D
Defines the ending vertex.
Segment
 InheritedendColor : uint
Defines the endColor
Segment
 Inheritedstart : Vector3D
Defines the starting vertex.
Segment
 InheritedstartColor : uint
Defines the startColor
Segment
 Inheritedthickness : Number
Defines the ending vertex.
Segment
Public Methods
 MethodDefined By
  
LineSegment(v0:Vector3D, v1:Vector3D, color0:uint = 0x333333, color1:uint = 0x333333, thickness:Number = 1)
Create a line segment
LineSegment
 Inherited
updateSegment(start:Vector3D, end:Vector3D, anchor:Vector3D, colorStart:uint = 0x333333, colorEnd:uint = 0x333333, thickness:Number = 1):void
Segment
Public Constants
 ConstantDefined By
  TYPE : String = line
LineSegment
Constructor Detail
LineSegment()Constructor
public function LineSegment(v0:Vector3D, v1:Vector3D, color0:uint = 0x333333, color1:uint = 0x333333, thickness:Number = 1)

Create a line segment

Parameters
v0:Vector3D — Start position of the line segment
 
v1:Vector3D — Ending position of the line segment
 
color0:uint (default = 0x333333) — Starting color of the line segment
 
color1:uint (default = 0x333333) — Ending colour of the line segment
 
thickness:Number (default = 1) — Thickness of the line
Constant Detail
TYPEConstant
public const TYPE:String = line