圓的參數式
Author: 藍邦偉　老師

r

rcosθ

rsinθ

圓的參數式

0≤θ<2π

k = 3 (slider from -5 to 5, step 1)
f: y = k
r = 5 (slider from 1 to 5, step 1)
h = 3 (slider from -5 to 5, step 1)
C: (x - h)^(2.0) + (y - k)^(2.0) = r^(2.0)
Q: (h, k)
g: x = h
θ = 4.974188368183839 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
A = Intersect(C, f, 2.0)
P = Rotate(A, θ, Q)
a = OrthogonalLine(P, f)
b = OrthogonalLine(P, g)
r_2 = Segment(Q, P)
B = Intersect(a, f)
d = Segment(Q, B)
e = Segment(B, P)
u = Vector((x(Corner[1.0]), 0.0), (x(Corner[3.0]), 0.0))
v = Vector((0.0, y(Corner[1.0])), (0.0, y(Corner[3.0])))
文字3: "\[\left\{\begin{array}{cc} x=" + h + "+" + r + "cosθ  \\y=" + k + "+" + r + " sinθ \\ \end{array}\right\]"
T_1 = Corner(1.0)
T_4 = Corner(4.0)
T_2: (4.0 * Corner[1.0] + Corner[2.0]) / 5.0
T_3: (4.0 * Corner[4.0] + Corner[3.0]) / 5.0
多邊形1, t_1, t_2, t_3, t_4 = Polygon(T_1, T_2, T_3, T_4)
c = Segment(T_2, T_3)