Bounds<T extends num> class
Rectangular bound delimited by orthogonal lines passing through two points.
- Annotations
Properties
-
bottomLeft
→ Point<
T> -
Bottom-Left corner's point.
no setter
-
bottomRight
→ Point<
T> -
Bottom-Right corner's point.
no setter
-
center
→ Point<
double> -
This Bounds central point.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
max
→ Point<
T> -
final
-
min
→ Point<
T> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
size
→ Point<
T> -
A point that contains the difference between the point's axis projections.
no setter
-
topLeft
→ Point<
T> -
Top-Left corner's point.
no setter
-
topRight
→ Point<
T> -
Top-Right corner's point.
no setter
Methods
-
contains(
Point< T> point) → bool -
containsBounds(
Bounds< T> b) → bool -
containsPartialBounds(
Bounds< T> b) → bool -
extend(
Point< T> point) → Bounds<T> - Creates a new Bounds obtained by expanding the current ones with a new point.
-
intersect(
Bounds< T> b) → Bounds<T> ? - Calculates the intersection of two Bounds. The return value will be null if there is no intersection. The returned bounds may be zero size (bottomLeft == topRight).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited