translateRelativeToRect method

Rect translateRelativeToRect(
  1. Rect otherRect
)

Translate rect so it is relative to the top-left position (goes inside of) another rect.

Implementation

Rect translateRelativeToRect(Rect otherRect)
{
  return translateRelativeToCoordinate( otherRect.getTopLeft() );
}