- #1
Ventrella
- 29
- 4
Start with a circle of radius r and center c. Inside of that circle is an arbitrary point p. Given an arbitrary normalized direction vector d, I need to find the radius and center the circle that (1) intersects p, (2) is tangent with the circle centered at c, and (3) has its center lying on the ray originating at p and aimed in direction d. The image below shows an example of a smaller circle that meets these constraints. I suspect the solution involves at least one dot product involving c, p, and d...but I cannot come up with an elegant solution. Any suggestions? Thanks! - Jeffrey