Heya, I've run into a problem and I'm having trouble coming up with a solution.
I have a box with varying width and height. I have a center point (x1, y1) that is always directly in the center of said box. And lastly: I have a final point (x2, y2) that exists somewhere outside the box.
If a line were to exist between these two points, how would I find the (x, y) coordinate of the point where this line intersects the border of this box (the point seen in red above).
Any assistance or advice would be greatly appreciated. Thank you.