Point

interface Point

Stores two values. Can be used to store the coordinates of a point in 2D space.

Author

Stanley Wintergreen

Since

0.1.0

See also

Properties

Link copied to clipboard
abstract val x: Double

The coordinate of the x-axis.

Link copied to clipboard
abstract val y: Double

The coordinate of the y-axis.

Extensions

Link copied to clipboard
fun Point.getDifference(that: Point): Offset
Link copied to clipboard
fun Point.moved(length: Double, angle: Double): Point
Link copied to clipboard
fun Point.toVector(finish: Point): Vector
fun Point.toVector(offset: Offset): Vector
fun Point.toVector(finish: Point, offset: Offset): Vector
fun Point.toVector(length: Double, angle: Double): Vector
Link copied to clipboard
fun Point.updated(dX: Double, dY: Double): Point
fun Point.updated(offset: Offset): Point

Sources

Link copied to clipboard