Packageaway3d.primitives.data
Classpublic class Segment
InheritanceSegment Inheritance Object
Subclasses LineSegment



Public Properties
 PropertyDefined By
  end : Vector3D
Defines the ending vertex.
Segment
  endColor : uint
Defines the endColor
Segment
  start : Vector3D
Defines the starting vertex.
Segment
  startColor : uint
Defines the startColor
Segment
  thickness : Number
Defines the ending vertex.
Segment
Public Methods
 MethodDefined By
  
Segment(start:Vector3D, end:Vector3D, anchor:Vector3D, colorStart:uint = 0x333333, colorEnd:uint = 0x333333, thickness:Number = 1)
Segment
  
updateSegment(start:Vector3D, end:Vector3D, anchor:Vector3D, colorStart:uint = 0x333333, colorEnd:uint = 0x333333, thickness:Number = 1):void
Segment
Property Detail
_endproperty
arcane var _end:Vector3D

_endBproperty 
arcane var _endB:Number

_endGproperty 
arcane var _endG:Number

_endRproperty 
arcane var _endR:Number

_segmentsBaseproperty 
arcane var _segmentsBase:SegmentSet

_startproperty 
arcane var _start:Vector3D

_startBproperty 
arcane var _startB:Number

_startGproperty 
arcane var _startG:Number

_startRproperty 
arcane var _startR:Number

_thicknessproperty 
arcane var _thickness:Number

endproperty 
end:Vector3D

Defines the ending vertex.


Implementation
    public function get end():Vector3D
    public function set end(value:Vector3D):void
endColorproperty 
endColor:uint

Defines the endColor


Implementation
    public function get endColor():uint
    public function set endColor(value:uint):void
indexproperty 
index:uint


Implementation
    arcane function get index():uint
    arcane function set index(value:uint):void
segmentsBaseproperty 
segmentsBase:SegmentSet  [write-only]


Implementation
    arcane function set segmentsBase(value:SegmentSet):void
startproperty 
start:Vector3D

Defines the starting vertex.


Implementation
    public function get start():Vector3D
    public function set start(value:Vector3D):void
startColorproperty 
startColor:uint

Defines the startColor


Implementation
    public function get startColor():uint
    public function set startColor(value:uint):void
thicknessproperty 
thickness:Number

Defines the ending vertex.


Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void
Constructor Detail
Segment()Constructor
public function Segment(start:Vector3D, end:Vector3D, anchor:Vector3D, colorStart:uint = 0x333333, colorEnd:uint = 0x333333, thickness:Number = 1)



Parameters
start:Vector3D
 
end:Vector3D
 
anchor:Vector3D
 
colorStart:uint (default = 0x333333)
 
colorEnd:uint (default = 0x333333)
 
thickness:Number (default = 1)
Method Detail
updateSegment()method
public function updateSegment(start:Vector3D, end:Vector3D, anchor:Vector3D, colorStart:uint = 0x333333, colorEnd:uint = 0x333333, thickness:Number = 1):void

Parameters

start:Vector3D
 
end:Vector3D
 
anchor:Vector3D
 
colorStart:uint (default = 0x333333)
 
colorEnd:uint (default = 0x333333)
 
thickness:Number (default = 1)