A Line Segment primitive.

Static variables

@:value("line")staticinlineread onlyTYPE:String = "line"

Constructor

@:value({ thickness : 1, color1 : 0x333333, color0 : 0x333333 })new(v0:Vector3D, v1:Vector3D, color0:Int = 0x333333, color1:Int = 0x333333, thickness:Float = 1)

Create a line segment

Parameters:

v0

Start position of the line segment

v1

Ending position of the line segment

color0

Starting color of the line segment

color1

Ending colour of the line segment

thickness

Thickness of the line

Inherited Variables

Defined by Segment

_end:Vector3D

_endB:Float

_endG:Float

_endR:Float

@:value(-1)_index:Int = -1

_start:Vector3D

_startB:Float

_startG:Float

_startR:Float

@:value(-1)_subSetIndex:Int = -1

end:Vector3D

index:Int

start:Vector3D

thickness:Float

Inherited Methods

Defined by Segment

dispose():Void

@:value({ thickness : 1, colorEnd : 0x333333, colorStart : 0x333333 })updateSegment(start:Vector3D, end:Vector3D, anchor:Vector3D, colorStart:Int = 0x333333, colorEnd:Int = 0x333333, thickness:Float = 1):Void