Construction in GCLC language


dim 120 120

point O 65 51.14
point M_{a} 65 40

color 220 0 0
fontsize 11

cmark_t O
cmark_b M_{a}
color 0 0 0
fontsize 10


% point C is given by the problem setting, but it has to belong to the line a which is constructible from the others objects given 
% DET:  points O and M_{a} are not the same
% Constructing a line m_{a} which passes through point O and point M_{a}
line m_{a} O M_{a} 

color 200 200 200
drawline m_{a}
color 0 0 0




% Constructing a line a which is perpendicular to line m_{a} and which passes through point M_{a}
perp a M_{a} m_{a} 

color 200 200 200
drawline a
color 0 0 0




% Constructing a point P_{\_G22075} with coordinates (10,30)
point P_{\_G22075} 10 30 
cmark_r P_{\_G22075}

% Constructing a line L_{\_G22078} which passes through point O and point M_{a}
line L_{\_G22078} O M_{a} 

color 200 200 200
drawline L_{\_G22078}
color 0 0 0


% Constructing a line L_{\_G22081} which is perpendicular to line L_{\_G22078} and which passes through point M_{a}
perp L_{\_G22081} M_{a} L_{\_G22078} 

color 200 200 200
drawline L_{\_G22081}
color 0 0 0


% Constructing a line L_{\_G22084} which passes through point O and point P_{\_G22075}
line L_{\_G22084} O P_{\_G22075} 

color 200 200 200
drawline L_{\_G22084}
color 0 0 0


% Constructing a point C which belongs to line L_{\_G22084} and line L_{\_G22081}
intersec C L_{\_G22084} L_{\_G22081} 
color 220 0 0
fontsize 11
cmark_b C
color 0 0 0
fontsize 10




% Constructing a point B such that CB/CM_{a}=2
towards B C M_{a} 2 
cmark_b B
color 200 200 200
drawsegment C B 
color 0 0 0



% Generating number V[_G22449] with value 0.3806552973873
number V[_G22449] 0.3806552973873 


% Calculating value V[_G22470] using formula V[_G22449]*360
expression V[_G22470]  { V[_G22449]*360  } 


% Constructing a point A which is an image of the point V[_G22470] in a rotation around the point O for the angle C
rotate A O V[_G22470] C 
cmark_t A
color 200 200 200
drawarc_p O C V[_G22470] 
color 0 0 0



drawsegment A B
drawsegment A C
drawsegment B C

% Non-degenerate conditions: 
% Determination conditions:  points O and M_{a} are not the same