y = k·x + q

\vec{s}=\overrightarrow{AB}=(b_1-a_1;b_2-a_2)=(s_1;s_2)

\vec{s}

s_1

s_2

k= tgφ = \frac{s_2}{s_1}=\frac{b_2-a_2_}{b_1-a_1}

y=\frac{b_2-a_2}{b_1-a_1}·x+q \ y=\frac{s_2}{s_1}·x+q

Směrnicový tvar ze dvou bodů

Volte φ=50°, q=5

φ = 0.8726646259971648 rad (slider from 40*° to 140*°, step 0.017453292519943295)
q = 5 (slider from -3 to 5, step 0.1)
k: tan(φ)
a: y = k * x + q
A_1 = Intersect(a, yAxis)
B_1 = Intersect(yAxis, xAxis)
b = Segment(A_1, B_1)
C = Midpoint(B_1, A_1)
text1: "q =" + q + ""
D = (7.12, 0)
E = Intersect(a, xAxis)
D' = Rotate(D, φ, E)
α = Angle(D, E, D')
text2: "Směrnicová rovnice přímky:   " + a + ""
F = (1.08, 6.6)
text3: "Obecná rovnice přímky:   " + k + "·x -y + " + q + " =0"
text4: "Obecná rovnice přímky:   " + k + "·x - y  " + q + " = 0"
text5: "k = tgφ = " + k + ""
A = Point(a)
B = Point(a)
u = Vector(A, B)
G = Midpoint(A, B)
c = OrthogonalLine(B, xAxis)
d = OrthogonalLine(A, yAxis)
H = Intersect(c, d)
e = Segment(B, H)
f = Segment(H, A)
φ' = Angle(H, A, B)
I = Midpoint(A, H)
J = Midpoint(H, B)
g = false