MutableRectangle<T extends num> class
A class for representing two-dimensional axis-aligned rectangles with mutable properties.
- Implemented types
-
-
Rectangle<
T>
-
Rectangle<
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)factory - Create a mutable rectangle spanned by the points
a
andb
; [...]
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
- The hash code for this object. [...]
- height ↔ T read / write
- The height of the rectangle.
- left ↔ T read / write
- The x-coordinate of the left edge. [...]
- right → T read-only, inherited
- The x-coordinate of the right edge.
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
- top ↔ T read / write
- The y-coordinate of the left edge. [...]
- topLeft → Point<
T> read-only, inherited - topRight → Point<
T> read-only, inherited - width ↔ T read / write
- The width of the rectangle.
Methods
- boundingBox(
Rectangle< T> other) → Rectangle<T> inherited - Returns a new rectangle which completely contains
this
andother
. - containsPoint(
Point< num> another) → boolinherited - Tests whether
another
is inside or along the edges ofthis
. - containsRectangle(
Rectangle< num> another) → boolinherited - Tests whether
this
entirely containsanother
. - intersection(
Rectangle< T> other) → Rectangle<T> ?inherited - Computes the intersection of
this
andother
. [...] - intersects(
Rectangle< num> other) → boolinherited - Returns true if
this
intersectsother
. - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- toString(
) → String inherited - A string representation of this object. [...]
Operators
- operator ==(
Object other) → bool inherited - The equality operator. [...]
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-math/MutableRectangle-class.html