init


Description:

public unowned Rect? init (float x, float y, float width, float height)

Initializes a Rect with the given origin and size.

Parameters:

this

a Rect

x

X coordinate of the origin

y

Y coordinate of the origin

width

width of the rectangle

height

height of the rectangle

Returns:

the updated rectangle