Tangent point on the circle (radius r, centre c) from external point p. side: -1 picks the CCW tangent from pc, +1 the CW (y-down screen coords flip the visual sense). Returns c if p is inside or on the circle.
r
c
p
side: -1
pc
+1
Tangent point on the circle (radius
r, centrec) from external pointp.side: -1picks the CCW tangent frompc,+1the CW (y-down screen coords flip the visual sense). Returnscifpis inside or on the circle.