Project a point through another point to a circle.
Documentation
Project a point through another point to a circle.
Parameters:
pt - the point to project
p - the projection center
- ctr The center of the circle
- rad The radius of the circle
ansdir - -1 or 1 : 1 = take further-away answer
success - Optional, the pointer to a boolean set if the projection was possible.
Returns:
The projected point, or if not possible, the original pt.