As you can see in the above picture, suppose that there is a ray emitted from center which intersects the edge of the rectangle.
How do I calculate at which point the ray intersects the edge?
(So that I could be able to calculate the distance between the center and a point on the edge.)
The following is known:
- width and height of rectangle
- a degree & b degree (as shown in above figure)
- centerX, centerY

