2D polyline type. An abstract class mapping to an array of Vec3s, with the z component at each point representing opacity there

Variables

@:impllength:Int

Length (number of points) of the polyline, read-only

Methods

@:implinlineendX():Float

Retrieve x coordinate of the last point (for segment-connecting algorithm)

@:implinlineendY():Int

Retrieve y coordinate of the last point, rounded to integer (for segment-connecting algorithm)

@:impl@:arrayAccessinlineget(i:Int):Vec3

Get point in the polyline via subscript operator ([i])

Parameters:

i

the index

@:implinlinepush(v:Vec3):Int

Add a new point to the end of the polyline

Parameters:

v

the point to be added

@:impl@:arrayAccessinlineset(i:Int, v:Vec3):Vec3

Set point in the polyline via subscript operator ([i])

Parameters:

i

the index

v

the value

@:implinlinestartX():Float

Retrieve x coordinate of the first point (for segment-connecting algorithm)

@:implinlinestartY():Int

Retrieve y coordinate of the first point, rounded to integer (for segment-connecting algorithm)

@:implinlineunshift(v:Vec3):Void

Add a new point at the beginning of the polyline

Parameters:

v

the point to be added