Construction in GCLC language
dim 120 120
point M_{a} 65 40
point H_{a} 80 40
color 220 0 0
fontsize 11
cmark_b M_{a}
cmark_b H_{a}
color 0 0 0
fontsize 10
% point O is given by the problem setting, but it has to belong to the line m_{a} which is constructible from the others objects given
% DET: points M_{a} and H_{a} are not the same
% Constructing a line a which passes through point M_{a} and point H_{a}
line a M_{a} H_{a}
color 200 200 200
drawline a
color 0 0 0
% Constructing a line m_{a} which is perpendicular to line a and which passes through point M_{a}
perp m_{a} M_{a} a
color 200 200 200
drawline m_{a}
color 0 0 0
% Constructing a point P_{\_G32920} with coordinates (10,30)
point P_{\_G32920} 10 30
cmark_r P_{\_G32920}
% Constructing a line L_{\_G32923} which passes through point H_{a} and point M_{a}
line L_{\_G32923} H_{a} M_{a}
color 200 200 200
drawline L_{\_G32923}
color 0 0 0
% Constructing a line L_{\_G32926} which is perpendicular to line L_{\_G32923} and which passes through point M_{a}
perp L_{\_G32926} M_{a} L_{\_G32923}
color 200 200 200
drawline L_{\_G32926}
color 0 0 0
% Constructing a line L_{\_G32929} which passes through point H_{a} and point P_{\_G32920}
line L_{\_G32929} H_{a} P_{\_G32920}
color 200 200 200
drawline L_{\_G32929}
color 0 0 0
% Constructing a point O which belongs to line L_{\_G32929} and line L_{\_G32926}
intersec O L_{\_G32929} L_{\_G32926}
color 220 0 0
fontsize 11
cmark_t O
color 0 0 0
fontsize 10
% Constructing a line h_{a} which is perpendicular to line a and which passes through point H_{a}
perp h_{a} H_{a} a
color 200 200 200
drawline h_{a}
color 0 0 0
% Constructing a point P_{\_G33380} with coordinates (10,30)
point P_{\_G33380} 10 30
cmark_r P_{\_G33380}
% Constructing a line L_{\_G33383} which passes through point M_{a} and point H_{a}
line L_{\_G33383} M_{a} H_{a}
color 200 200 200
drawline L_{\_G33383}
color 0 0 0
% Constructing a line L_{\_G33386} which is perpendicular to line L_{\_G33383} and which passes through point H_{a}
perp L_{\_G33386} H_{a} L_{\_G33383}
color 200 200 200
drawline L_{\_G33386}
color 0 0 0
% Constructing a line L_{\_G33389} which passes through point M_{a} and point P_{\_G33380}
line L_{\_G33389} M_{a} P_{\_G33380}
color 200 200 200
drawline L_{\_G33389}
color 0 0 0
% Constructing a point A which belongs to line L_{\_G33389} and line L_{\_G33386}
intersec A L_{\_G33389} L_{\_G33386}
cmark_t A
% NDG: points A and O are not the same
% Constructing a circle k(O,C) whose center is at point O and which passes through point A
circle k(O,C) O A
color 200 200 200
drawcircle k(O,C)
color 0 0 0
% NDG: line a and circle k(O,C) intersect
% Constructing points C and B which are in intersection of k(O,C) and a
intersec2 C B k(O,C) a
cmark_b C
cmark_b B
drawsegment A B
drawsegment A C
drawsegment B C
% Non-degenerate conditions: line a and circle k(O,C) intersect; points A and O are not the same
% Determination conditions: points M_{a} and H_{a} are not the same