AABB.fromCoordinates constructor

  1. @Deprecated('Use AABB.fromLTWH')
AABB.fromCoordinates({
  1. required double x,
  2. required double y,
  3. required double width,
  4. required double height,
})

Implementation

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