2D 座標架
Author: 藍邦偉  老師

$ O $

$P$

$u$

1

2

直線的參數式

P_0 = (2.801600691644142, 1.5696049244031973)
O_1 = Intersect(x = 0, y = 0)
Q_4: 0.7 * Corner[1] + 0.3 * Corner[2]
Q_3: (x(Q_4), y(Corner[4]))
poly1, q_1, q_2, q_4, q_3 = Polygon(Corner[1], Q_4, Q_3, Corner[4])
O_0 = (-8.599962429076257, -0.24471377438943948)
c = Circle(O_0, 1)
A = Point(c)
P = DynamicCoordinates(P_0, floor(x(P_0)), floor(y(P_0)))
u = Vector(O_0, A)
t = 10 (slider from 0 to 10, step 0.01)
Q_1: P + t * u
Q_2: P - t * u
a_1 = false
b_1 = false
v_1 = Vector(P, Q_1)
v_2 = Vector(P, Q_2)
x1: x(P)
a: x(A) - x(O_0)
b: y(A) - y(O_0)
y1: y(P)
text1: "$通過點P" + (LaTeX[P]) + "且方向向量為$
$(" + (LaTeX[a]) + "," + (LaTeX[b]) + ")的直線參數式為$"
text2: "L:\left\lbrace\begin{array}{ll} x= " + (LaTeX[x1 + If[(x1 ≠ 0) ∧ (a > 0), "+" + a + "t", If[(x1 ≠ 0) ∧ (a < 0), "-" + (abs(a)) + "t", ""]]]) + "\\ y=" + (LaTeX[y1 + If[(y1 ≠ 0) ∧ (b > 0), "+" + b + "t", If[(y1 ≠ 0) ∧ (b < 0), "-" + (abs(b)) + "t", ""]]]) + " \end{array}   \right.\ "