point A

point B

point C

v

vect. u

point O

vect. O..A

O..B

O..C

u.(O..A)

v.(O..B)

w.(O..C)

w

A = (-3, 2)
B = (-2, 2)
poly1, a, b, c, d, e, f, C, D, E, F = Polygon(A, B, 6.0)
u = UnitOrthogonalVector(a)
v = UnitOrthogonalVector(b)
w = UnitOrthogonalVector(c)
O = (0, -3)
D2 = 0
D3 = -3
A5 = 0
B5 = -0.87
C5 = -0.87
A6 = 1
B6 = 0.5
C6 = -0.5
A2 = -3
A3 = 2
B2 = -2
B3 = 2
C2 = -1.5
C3 = 2.87
A8: A2 - $D2
A9: A3 - $D3
B8: B2 - $D2
B9: B3 - $D3
C8: C2 - $D2
C9: C3 - $D3
A11: A5 * A8 + A6 * A9
B11: B5 * B8 + B6 * B9
C11: C5 * C8 + C6 * C9
F1 = 0
g = Distance(O, B)