BoundingBox.y constructor
Constructs a BoundingBox that is only bounded on the Y-axis.
This constructor initializes a bounding box where only the Y-axis has defined bounds,
specified by the min
and max
parameters. The X-axis remains unbounded, which means
both minX
and maxX
are set to null.
Parameters:
min
: The minimum Y coordinate of the bounding box. Can be null if the lower bound is not defined.max
: The maximum Y coordinate of the bounding box. Can be null if the upper bound is not defined.
Implementation
const BoundingBox.y({double? min, double? max})
: minX = null,
maxX = null,
minY = min,
maxY = max;