Rectangle Methods

The Rectangle type exposes the following members.

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.

See Also

Reference