Skip to main content

Rect

Describes a rectangular region.

class Rect

Constructor​

constructor(x: Float, y: Float, width: Float, height: Float)

Creates a new Rect with the given position and size.

Properties​

x​

x: Float { get set }

The x coordinate


y​

y: Float { get set }

The y coordinate


width​

width: Float { get set }

The width of the region.


height​

height: Float { get set }

The height of the region.

Methods​

to_string​

to_string() -> (String)

Returns a string representation of the rect.