BoundingBox.ltrb constructor

BoundingBox.ltrb(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
)

Creates an axis-aligned bounding box from left, top, right, and bottom edges.

Implementation

factory BoundingBox.ltrb(
  double left,
  double top,
  double right,
  double bottom,
) => BoundingBox(
  topLeft: Point(left, top),
  topRight: Point(right, top),
  bottomRight: Point(right, bottom),
  bottomLeft: Point(left, bottom),
);