BoundingBox class

Axis-aligned bounding box defined by two corner points.

Example:

BoundingBox boundingBox = BoundingBox(bottomLeft, topRight);
print("Created bounding box: bottomLeft(${boundingBox.bottomLeft.x}, ${boundingBox.bottomLeft.y}), topRight(${boundingBox.topRight.x}, ${boundingBox.topRight.y})");

Constructors

BoundingBox(Point bottomLeft, Point topRight)
Default constructor.

Properties

bottomLeft Point
Lower-left corner of the bounding box.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topRight Point
Upper-right corner of the bounding box.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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