Rect64 class
Rect64 is a rectangle defined by its left, top, right, and bottom edges, in integer coordinates.
Constructors
- Rect64()
- Default constructor creates an empty rectangle.
- Rect64.fromLTRB(int left, int top, int right, int bottom)
- Create a rectangle from explicit coordinates.
- Rect64.invalid()
- An invalid rectangle.
Properties
- asPath → Path64
-
Get a path describing the rectangle.
no setter
- bottom ↔ int
-
Bottom edge of the rectangle.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int
-
Height of the rectangle.
getter/setter pair
- isEmpty → bool
-
Determine if the rectangle is empty.
no setter
- isValid → bool
-
Determine if the rectangle is valid.
no setter
- left ↔ int
-
Left edge of the rectangle.
getter/setter pair
- midPoint → Point64
-
Get the mid point of the rectangle.
no setter
- right ↔ int
-
Right edge of the rectangle.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top ↔ int
-
Top edge of the rectangle.
getter/setter pair
- width ↔ int
-
Width of the rectangle.
getter/setter pair
Methods
-
asPathWithZ(
int z) → Path64 - Get a path describing whe rectangle, with the given Z.
-
contains(
Point64 pt) → bool - Check if the given point is inside the rectangle.
-
containsRect(
Rect64 rec) → bool - Check if the given rectangle is fully contained in the rectangle.
-
inflate(
int dx, int dy) → void -
Inflate the rectangle by
dx,dy. -
intersects(
Rect64 rec) → bool - Check if two rectangles intersect.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scaled(
double scale) → Rect64 -
Scale the rectangle's coordinates by
scale. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited