Bounds class

Axis-aligned bounding box.

Constructors

Bounds(int length)
factory
Bounds.fromLists(List<double> min, List<double> max)
factory
Bounds.fromPoint(List<double> point)
factory

Properties

area double
no setter
center List<double>
no setter
edges List<double>
no setter
hashCode int
The hash code for this object.
no setteroverride
isPoint bool
no setter
length int
no setter
max Float64List
final
min Float64List
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(Bounds bounds) bool
Computes whether another bounding box is fully contained in this one.
intersection(Bounds other) Bounds?
Computes the intersection of this bounding box and another one.
intersects(Bounds other) bool
Computes if this bounding box and another one intersect.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
union(Bounds other) Bounds
Computes the union of this bounding box and another one.

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

intersectionAll(Iterable<Bounds> bounds) Bounds?
Computes the intersection of all bounding boxes.
unionAll(Iterable<Bounds> bounds) Bounds
Computes the union of all bounding boxes.