add

fun add(points: PointCollection)

Add a new points to the end of the mutable point collection.

Since

200.1.0


fun add(x: Double, y: Double)

Add a new point to the end of the mutable point collection by specifying the points x,y coordinates.

Since

200.1.0

Parameters

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.


fun add(x: Double, y: Double, z: Double)

Add a new point to the end of the mutable point collection by specifying the points x,y,z coordinates.

Since

200.1.0

Parameters

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

z

The z coordinate of the new point.


fun add(pointIndex: Int, x: Double, y: Double)

Inserts a point specified by its x,y coordinates into the mutable point collection at the specified point index. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

Since

200.1.0

Parameters

pointIndex

Zero-based index of the point.

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

Throws

if pointIndex is out of range.


fun add(pointIndex: Int, x: Double, y: Double, z: Double)

Inserts a point specified by its x,y,z coordinate into the mutable point collection at the specified point index. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

Since

200.1.0

Parameters

pointIndex

Zero-based index of the point.

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

z

The z-coordinate of the new point.

Throws

if pointIndex is out of range.


open override fun add(index: Int, element: Point)

Inserts a point into the mutable point collection at the specified point index. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

Since

200.1.0

Parameters

index

Zero-based index of the point.

element

The point to insert.

Throws

if pointIndex is out of range.