Loading...
Searching...
No Matches
BoundingBox Class Reference

Axis-aligned bounding box defined by two corner points. More...

Public Member Functions

 BoundingBox (this.bottomLeft, this.topRight)
 Default constructor.
 

Public Attributes

Point bottomLeft
 Lower-left corner of the bounding box.
 
Point topRight
 Upper-right corner of the bounding box.
 

Detailed Description

Axis-aligned bounding box defined by two corner points.

Dart code snippet:

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

Definition at line 22 of file bounding_box.dart.

Constructor & Destructor Documentation

◆ BoundingBox()

BoundingBox.BoundingBox ( this. bottomLeft,
this. topRight )

Default constructor.

Member Data Documentation

◆ bottomLeft

Point BoundingBox.bottomLeft

Lower-left corner of the bounding box.

Dart code snippet:

Point leftCorner = boundingBox.bottomLeft;
print("Bottom-left corner: (${leftCorner.x}, ${leftCorner.y})");

Definition at line 34 of file bounding_box.dart.

◆ topRight

Point BoundingBox.topRight

Upper-right corner of the bounding box.

Dart code snippet:

Point rightCorner = boundingBox.topRight;
print("Top-right corner: (${rightCorner.x}, ${rightCorner.y})");

Definition at line 44 of file bounding_box.dart.


The documentation for this class was generated from the following file: