Game Development Reference
In-Depth Information
result.Left() = m_to.Left();
The left alignment is trivial, we match the Left coordinate of the floating rectangle to the
Left of the fixed rectangle.
auto offset = to.Right() - from.Left();
result.Left() += (offset - result.Width());
angle's Left coordinate so that it is right aligned, then we subtract the floating rectangle's
Search WWH ::

Custom Search