- #1
jisbon
- 476
- 30
- Homework Statement
- Find the coordinates of the intersection between field of view and ball in motion
- Relevant Equations
- -
Say we are working in a 2D plane, with a camera and a ball flying past as shown.
Camera at bottom, ball flying from left to right
Given that I have the X/Y coordinates of the camera, as well as the coordinates of the ball at any given time during the 'flight', how am I supposed to calculate the coordinate where the field of view intercepts the flight path? In this case, I am trying to find the coordinate in red color.
Finding coordinate where FOV intercepts path
It is also possible for the camera to rotate around its position too, and this also changes the interception of the coordinates as shown.
Only 1 interception in this case
Any kind souls here able to give me a jumpstart on how to solve this problem? Not sure where I can start. To recap, I have the coordinates of the camera, coordinates of ball at any time, and would like to find if FOV:
Camera at bottom, ball flying from left to right
Given that I have the X/Y coordinates of the camera, as well as the coordinates of the ball at any given time during the 'flight', how am I supposed to calculate the coordinate where the field of view intercepts the flight path? In this case, I am trying to find the coordinate in red color.
Finding coordinate where FOV intercepts path
It is also possible for the camera to rotate around its position too, and this also changes the interception of the coordinates as shown.
Only 1 interception in this case
Any kind souls here able to give me a jumpstart on how to solve this problem? Not sure where I can start. To recap, I have the coordinates of the camera, coordinates of ball at any time, and would like to find if FOV:
- Both sides intercepts (if so, find both of the coordinates)
- One side intercept (if so, find coordinate)
- No intercept