Bounds<T extends num> class

Rectangular bound delimited by orthogonal lines passing through two points.

Constructors

Bounds(CustomPoint<T> a, CustomPoint<T> b)
factory

Properties

bottomLeft CustomPoint<T>
Bottom-Left corner's point.
read-only
bottomRight CustomPoint<T>
Bottom-Right corner's point.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
max CustomPoint<T>
final
min CustomPoint<T>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size CustomPoint<T>
A point that contains the difference between the point's axis projections.
read-only
topLeft CustomPoint<T>
Top-Left corner's point.
read-only
topRight CustomPoint<T>
Top-Right corner's point.
read-only

Methods

contains(CustomPoint<T> point) bool
containsBounds(Bounds<T> b) bool
containsPartialBounds(Bounds<T> b) bool
extend(CustomPoint<T> point) Bounds<T>
Creates a new Bounds obtained by expanding the current ones with a new point.
getCenter() CustomPoint<double>
This Bounds cental point.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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