Point

value class Point

Represents a point in a coordinate system.

Properties

Link copied to clipboard
val x: Float

The x coordinate.

Link copied to clipboard
val y: Float

The y coordinate.

Functions

Link copied to clipboard
operator fun component1(): Float
Link copied to clipboard
operator fun component2(): Float
Link copied to clipboard
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.

Link copied to clipboard
open override fun toString(): String