getPercentOfSize method

Box getPercentOfSize(
  1. Size size
)

Implementation

Box getPercentOfSize(Size size)
{
  return new Box(
    top / size.height,
    right / size.width,
    bottom / size.height,
    left / size.width);
}