copy

fun copy(x: Float = this.x, y: Float = this.y): Point

Copies this Point, updating one or both of the coordinates. If providing new values for both x and y, consider creating a new Point using one of the helper functions instead.