Rectangle<int> align()

Source

Rectangle<int> align() {
  int rLeft = left.floor();
  int rTop = top.floor();
  int rRight = right.ceil();
  int rBottom = bottom.ceil();
  return new Rectangle<int>(rLeft, rTop, rRight - rLeft, rBottom - rTop);
}