min method

Box min(
  1. Box minBox
)

Implementation

Box min(Box minBox)
{
  top = Math.min(top, minBox.top);
  right = Math.min(right, minBox.right);
  bottom = Math.min(bottom, minBox.bottom);
  left = Math.min(left, minBox.left);
  return this;
}