CoordinatePlain

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.

Parameters

topLeftX

The xCoord of the top left corner

topLeftY

The yCoord of the top left corner

bottomRightX

The xCoord of the bottom right corner

bottomRightY

The yCoord of the bottom right corner


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.

Parameters

topLeft

Coordinate of top left corner

bottomRight

Coordinate of bottom right corner

Throws

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