Get position of a rectangle's side, on the X axis if left or right, or on the Y axis if top or bottom.
See Implementation
Get position of a rectangle's side, on the X axis if left or right, or on the Y axis if top or bottom.