Liitmine

Lahutamine

A (pikkus)

B (pikkus)

Θ_A

Θ_B

A

→

→

B

A + B

→

→

→

-B

A - B

→

→

Θ_B = 0 rad (slider from 0° to 6.283185307179586)
r_2 = 8 (slider from 0 to 20, step 0.1)
Θ_A = 1.5707963267948966 rad (slider from 0 to 6.283185307179586)
r_1 = 10 (slider from 0 to 20, step 0.1)
A: ((r_1 * cos(Θ_A)), (r_1 * sin(Θ_A)))
t = false
f = true
C: (0, 0)
tekstiväli1 = Textfield(r_1)
tekstiväli2 = Textfield(r_2)
tekstiväli3 = Textfield(Θ_A)
tekstiväli4 = Textfield(Θ_B)
B: ((r_2 * cos(Θ_B)), (r_2 * sin(Θ_B)))
b = Vector(C, B)
a = Vector(C, A)
u = If(t, Vector[a + b], Vector[a - b])
D: (x(u), y(u))
bu: (-b)
g = Segment(A, D)
h = Segment(B, D)
E: (x(bu), y(bu))
i = Segment(E, D)