PointExtension

object PointExtension

Utilities for Point.

Functions

Link copied to clipboard
fun makePoint(x: Number, y: Number): Point

Creates a Point.

Link copied to clipboard
fun Point.makeRectangleWith(other: Point): Rectangle

Creates a rectangle that has this and other as its opposite-diagonal vertexes.

Link copied to clipboard
operator fun Point.minus(p: Point): Point

Subtracts this and the given Point.

Link copied to clipboard
operator fun Point.plus(p: Point): Point

Sums this and the given Point.