Rectangle<T extends num> class

Constructors

Rectangle(T left, T top, T width, T height)
Rectangle.from(Rectangle<T> r)

Properties

bottom ↔ T
The y-coordinate of the bottom edge.
read / write
bottomLeft Point<T>
read / write
bottomRight Point<T>
read / write
center Point<num>
read-only
hashCode → int
The hash code for this object. [...]
read-only
height ↔ T
The height of the rectangle.
read / write
isEmpty → bool
read-only
left ↔ T
The x-coordinate of the left edge. [...]
read / write
The x-coordinate of the right edge.
read / write
size Point<T>
read / write
top ↔ T
The y-coordinate of the left edge. [...]
read / write
topLeft Point<T>
read / write
topRight Point<T>
read / write
width ↔ T
The width of the rectangle.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

align() Rectangle<int>
boundingBox(Rectangle<T> other) Rectangle<T>
Returns a new rectangle which completely contains this and other.
clone() Rectangle<T>
contains(num px, num py) → bool
containsPoint(Point<num> p) → bool
Tests whether another is inside or along the edges of this.
containsRectangle(Rectangle<num> r) → bool
Tests whether this entirely contains another.
copyFrom(Rectangle<T> r) → void
inflate(T dx, T dy) → void
inflatePoint(Point<T> p) → void
intersection(Rectangle<T> rect) Rectangle<T>
Computes the intersection of this and other. [...]
intersects(Rectangle<num> r) → bool
Returns true if this intersects other.
offset(T dx, T dy) → void
offsetPoint(Point<T> p) → void
setTo(T rx, T ry, T rwidth, T rheight) → void
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]