Dart API Reference
dart:math
MutableRectangle
MutableRectangle<T extends num>
class
A class for representing two-dimensional axis-aligned rectangles with mutable properties.
A class for representing two-dimensional axis-aligned rectangles with mutable properties.
Implements:
Rectangle
<T>
Implementors
CssRect
Constructors
MutableRectangle
(
T
left
,
T
top
,
T
width
,
T
height
)
Create a mutable rectangle spanned by (left, top) and (left+width, top+height).
MutableRectangle.fromPoints
(
Point
<T>
a
,
Point
<T>
b
)
Create a mutable rectangle spanned by the points a and b;
Instance Properties
left
T
read/write
The x-coordinate of the left edge.
top
T
read/write
The y-coordinate of the left edge.
width
T
read/write
height
T
read/write
hashCode
int
Inherited
read-only
right
T
Inherited
read-only
bottom
T
Inherited
read-only
topLeft
Point
<T>
Inherited
read-only
topRight
Point
<T>
Inherited
read-only
bottomRight
Point
<T>
Inherited
read-only
bottomLeft
Point
<T>
Inherited
read-only
bottomLeft
Point
<T>
Inherited
read-only
bottomRight
Point
<T>
Inherited
read-only
topRight
Point
<T>
Inherited
read-only
bottom
T
Inherited
read-only
right
T
Inherited
read-only
topLeft
Point
<T>
Inherited
read-only
Instance Methods
toString
Inherited
( ) →
String
Returns a string representation of this object.
intersection
Inherited
(
Rectangle
<T>
other
) →
Rectangle
<T>
Computes the intersection of this and other.
intersects
Inherited
(
Rectangle
<
num
>
other
) →
bool
Returns true if this intersects other.
boundingBox
Inherited
(
Rectangle
<T>
other
) →
Rectangle
<T>
Returns a new rectangle which completely contains this and other.
containsRectangle
Inherited
(
Rectangle
<
num
>
another
) →
bool
Tests whether this entirely contains another.
containsPoint
Inherited
(
Point
<
num
>
another
) →
bool
Tests whether another is inside or along the edges of this.
boundingBox
Inherited
(
Rectangle
<T>
other
) →
Rectangle
<T>
Returns a new rectangle which completely contains this and other.
intersection
Inherited
(
Rectangle
<T>
other
) →
Rectangle
<T>
Computes the intersection of this and other.
Operators
operator ==
Inherited
(
other
) →
bool
The equality operator.