BoundingBox.x constructor

const BoundingBox.x({
  1. double? min,
  2. double? max,
})

Constructs a BoundingBox that is only bounded on the X-axis.

This constructor initializes a bounding box where only the X-axis has defined bounds, specified by the min and max parameters. The Y-axis remains unbounded, which means both minY and maxY are set to null.

Parameters:

  • min: The minimum X coordinate of the bounding box. Can be null if the lower bound is not defined.
  • max: The maximum X coordinate of the bounding box. Can be null if the upper bound is not defined.

Implementation

const BoundingBox.x({double? min, double? max})
    : minX = min,
      maxX = max,
      minY = null,
      maxY = null;