Центр вращения = (x(A), y(A))

m_1

m_2

N

плечо силы m_2g

плечо силы m_1g

m_1 = 2.95 (slider from 0.5 to 5, step 0.01)
m_2 = 4.59 (slider from 0.5 to 5, step 0.01)
l = 20 (slider from 3 to 20, step 1)
M_1 = (-70, 60)
d = OrthogonalLine(M_1, xAxis)
M_2 = (30, 50)
e = OrthogonalLine(M_2, xAxis)
f = Segment(M_1, M_2)
O = Point(xAxis)
moment: m_1 * (x(O) - x(M_1)) + m_2 * (x(O) - x(M_2))
α: 0.4 * atan(1.0 / l * moment)
l_1 = Circle(O, 2.0 * l)
G, H = Intersect(l_1, xAxis)
H' = Rotate(H, α, O)
h = Line(O, H')
I, J = Intersect(l_1, h)
K = Intersect(d, h)
L = Intersect(e, h)
g = 9.81
l_0 = 10 (slider from 0 to 10, step 0.1)
N: (x(K), y(K) - l_0)
T: (x(L), y(L) - l_0)
R: (x(N), y(N) - m_1 * g)
S: (x(T), y(T) - m_2 * g)
m_1g = Vector(N, R)
m_2g = Vector(T, S)
A_1: (x(O) - l_0 * sqrt(1.0 / 3.0), y(O) - l_0)
многоугольник1, a, a_1, a_2, B = Polygon(O, A_1, 3.0)
N_1: (x(N) - m_1, y(N) - m_1)
N_2: (x(N) - m_1, y(N) + m_1)
многоугольник2, n_2, n_1, b, c, C, D = Polygon(N_2, N_1, 4.0)
T_1: (x(T) - m_2, y(T) - m_2)
T_2: (x(T) - m_2, y(T) + m_2)
многоугольник3, o_2, o_1, i, j, E, F = Polygon(T_2, T_1, 4.0)
k = Segment(L, T)
m = Segment(K, N)
n = Segment(K, O)
p = Segment(O, L)
q = OrthogonalLine(O, xAxis)
A_2: (x(O), y(O) + g * (m_1 + m_2))
u_1 = Vector(O, A_2)
r = OrthogonalLine(M_2, e)
s = OrthogonalLine(M_1, d)
M = Intersect(s, q)
P = Intersect(r, q)
u = Vector(P, M_2)
v = Vector(M, M_1)