AABB.fromCoordinates constructor

AABB.fromCoordinates({
  1. required double x,
  2. required double y,
  3. required double width,
  4. required double height,
})

Implementation

AABB.fromCoordinates({
  required double x,
  required double y,
  required double width,
  required double height,
})  : left = x,
      top = y,
      right = x + width,
      bottom = y + height;