addPoint

fun addPoint(x: Double, y: Double): Int

Adds a new point to the end of the last part of the multipart. If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

Return

The point index of the new point in the last part.

Since

200.1.0

Parameters

x

The x-coordinate of the point to add.

y

The y-coordinate of the point to add.


fun addPoint(x: Double, y: Double, z: Double): Int

Adds a new point to the end of the last part of the multipart. If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

Return

the point index of the new point in the last part

Since

200.1.0

Parameters

x

The x-coordinate of the point to add.

y

The y-coordinate of the point to add.

z

The z-coordinate of the point to add.


fun addPoint(point: Point): Int

Adds a new point to the end of the last part of the multipart. If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

Return

the point index of the new point in the last part

Since

200.1.0

Parameters

point

The point to add.