plus

operator fun plus(other: Point2D): Point2D(source)

Adds the coordinates of this point and the other point, returning a new Point2D.

Return

A new Point2D instance with the sum of the coordinates of the two input points.

Parameters

other

The other Point2D to add.