A class for representing two-dimensional rectangles whose properties are immutable.
- Implemented by
Properties
- bottom → T
-
read-only, inherited
The y-coordinate of the bottom edge.
- bottomLeft → Point<T>
-
read-only, inherited
- bottomRight → Point<T>
-
read-only, inherited
- hashCode → int
-
read-only, inherited
- height → T
-
read-only
- left → T
-
read-only
- right → T
-
read-only, inherited
The x-coordinate of the right edge.
- top → T
-
read-only
- topLeft → Point<T>
-
read-only, inherited
- topRight → Point<T>
-
read-only, inherited
- width → T
-
read-only
Constructors
Operators
-
operator ==(
other) → bool -
inherited
The equality operator.…
Methods
-
boundingBox(
Rectangle<T> other) → Rectangle<T> -
inherited
Returns a new rectangle which completely contains
this
andother
. -
containsPoint(
Point<num> another) → bool -
inherited
Tests whether
another
is inside or along the edges ofthis
. -
containsRectangle(
Rectangle<num> another) → bool -
inherited
Tests whether
this
entirely containsanother
. -
intersection(
Rectangle<T> other) → Rectangle<T> -
inherited
Computes the intersection of
this
andother
.… -
intersects(
Rectangle<num> other) → bool -
inherited
Returns true if
this
intersectsother
. -
toString(
) → String -
inherited
Returns a string representation of this object.