I'm trying to make a bullet penetration system. Taking a look at the picture below could help explain what I want better.
If we know the coordinates of a square shape as well as AB vector with direction coefficient, how do we find X,Y for C point?
Basically I'm trying to find the X,Y coordinates of the point of the opposite side of an object of another point. As you can see I'm not exactly going for realism as it's linear. Below are a couple more examples to clarify my objective.
===========================================================================
Any help is greatly appreciated :D