Originally Posted by
Opie
Thanks. I went with more of a fudge by traversing down the green line and testing distance from the center point less the radius. If the two distances were within a margin of error, it was close enough. I would like a more exact algorithm, but I am comfortable with my current solution.
Considering the notations in the previous message, try this:
Code:
(defun bepe (pointO pointA pointB AD / pointD pointQ)
(setq pointD (polar pointO (angle pointO pointA) (+ (distance pointO pointA) AD))
;;pointQ = (d) intersected with BD
pointQ (polar pointB (angle pointB pointD) (/ (distance pointB pointD) 2.))
)
;;Distance between point B and point P
(distance pointB (inters pointQ (polar pointQ (+ (angle pointB pointD) (/ pi 2)) 100.) pointO pointB nil))
)