This documentation is for the old version. Go to the latest Graphics Mill docs

Rectangle Members

The Rectangle type exposes the following members.

Constructors

Name Description
Public method Rectangle

Methods

Name Description
Public method clone

Clones rectangle.

Public method contains

Determines if the specified point is contained within the rectangular region defined by this Rectangle.

Public method equals

Determines whether the specified rectangle equals to this Rectangle.

Public method intersect

Calculates intersection of two rectangles.

Public method intersectsWith

Determines if this Rectangle intersects with rect.

Public method round

Rounds all parameters: x, y, width, and height; and returns new Rectangle object.

Fields

Name Description
Public field height

The rectangle height.

Public field width

The rectangle width.

Public field x

The x-coordinate of the upper-left corner.

Public field y

The y-coordinate of the upper-left corner.

See Also

Reference