CoordinatePlain

open class CoordinatePlain

A CoordinatePlain with its four corners as Coordinates.

Throws

If TOP_LEFT corner coordinates are larger in x or y direction than BOTTOM_RIGHT corner coordinate.

Constructors

Link copied to clipboard
fun CoordinatePlain(    topLeftX: Number,     topLeftY: Number,     bottomRightX: Number,     bottomRightY: Number)

A CoordinatePlain with two corners as Coordinates. Creates a coordinate plain out of the two corners TOP_LEFT and BOTTOM_RIGHT as Coordinates. TOP_LEFT corner coordinates must be smaller or equal in x and y direction than BOTTOM_RIGHT corner coordinate.

Link copied to clipboard
fun CoordinatePlain(topLeft: Coordinate, bottomRight: Coordinate)

A CoordinatePlain with two corners as Coordinates. Creates a coordinate plain out of the two corners TOP_LEFT and BOTTOM_RIGHT as Coordinates. TOP_LEFT corner coordinates must be smaller or equal in x and y direction than BOTTOM_RIGHT corner coordinate.

Functions

Link copied to clipboard
fun rotated(angle: Number, center: Coordinate): CoordinatePlain

Rotates CoordinatePlain by angle degrees around center point.

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

Properties

Link copied to clipboard
val bottomLeft: Coordinate

Bottom left corner coordinate.

Link copied to clipboard
val bottomLeftBound: Coordinate

Bottom left bound coordinate.

Link copied to clipboard
val bottomRight: Coordinate

Bottom right corner coordinate.

Link copied to clipboard
val bottomRightBound: Coordinate

Bottom right bound coordinate.

Link copied to clipboard
val height: Double

The height of this plain.

Link copied to clipboard
val topLeft: Coordinate

Top left corner coordinate.

Link copied to clipboard
val topLeftBound: Coordinate

Top left bound coordinate.

Link copied to clipboard
val topRight: Coordinate

Top right corner coordinate.

Link copied to clipboard
val topRightBound: Coordinate

Top right bound coordinate.

Link copied to clipboard
val width: Double

The width of this plain.