圓與直線的關係
Author: 藍邦偉  老師

相切:d(Q,L)=r

相割:d(Q,L)<r

相離:d(Q,L)>r

圓與直線的關係

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
Q = (1.22, 1.36)
B = (-2.4, -1.4000000000000001)
A = (5.92, -0.34)
a = Line(B, A)
b = OrthogonalLine(Q, a)
D = Intersect(a, b)
r = 2.4 (slider from 1 to 5, step 0.1)
c = Circle(Q, r)
E = Intersect(c, b, 2)
F = (-5.84, 3.42)
C = (-5.82, 3.22)