BoundingRectangle

external class BoundingRectangle(var x: Double = definedExternally, var y: Double = definedExternally, var width: Double = definedExternally, var height: Double = definedExternally)(source)

A bounding rectangle given by a corner, width and height.

See also

Constructors

Link copied to clipboard
constructor(x: Double = definedExternally, y: Double = definedExternally, width: Double = definedExternally, height: Double = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The height of the rectangle. Default value - 0.0

Link copied to clipboard

The width of the rectangle. Default value - 0.0

Link copied to clipboard
var x: Double

The x coordinate of the rectangle. Default value - 0.0

Link copied to clipboard
var y: Double

The y coordinate of the rectangle. Default value - 0.0

Functions

Link copied to clipboard
fun clone(result: BoundingRectangle? = definedExternally): BoundingRectangle

Duplicates this BoundingRectangle instance.

Link copied to clipboard

Determines if this rectangle intersects with another.