Construction in GCLC language


dim 120 120

point O 65 51.14
point M_{a} 65 40
point M_{b} 95 67.5

color 220 0 0
fontsize 11

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

% 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



% DET:  points O and M_{b} are not the same
% Constructing a line m_{b} which passes through point O and point M_{b}
line m_{b} O M_{b} 

color 200 200 200
drawline m_{b}
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 line b which is perpendicular to line m_{b} and which passes through point M_{b}
perp b M_{b} m_{b} 

color 200 200 200
drawline b
color 0 0 0



% NDG:  lines b and a are not parallel% DET:  lines b and a are not the same
% Constructing a point C which belongs to line b and line a
intersec C b a 
cmark_b C



% 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



% Constructing a point A such that M_{b}A/M_{b}C=-1
towards A M_{b} C -1 
cmark_t A
color 200 200 200
drawsegment C A 
color 0 0 0



drawsegment A B
drawsegment A C
drawsegment B C

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