Construction in GCLC language
dim 120 120
point M_{a} 65 40
point M_{b} 95 67.5
point M_{c} 50 67.5
color 220 0 0
fontsize 11
cmark_b M_{a}
cmark_rt M_{b}
cmark_lt M_{c}
color 0 0 0
fontsize 10
% DET: points M_{a} and M_{c} are not the same
% Constructing a line M_{c}M_{a} which passes through point M_{a} and point M_{c}
line M_{c}M_{a} M_{a} M_{c}
color 200 200 200
drawline M_{c}M_{a}
color 0 0 0
% DET: points M_{b} and M_{c} are not the same
% Constructing a line M_{c}M_{b} which passes through point M_{b} and point M_{c}
line M_{c}M_{b} M_{b} M_{c}
color 200 200 200
drawline M_{c}M_{b}
color 0 0 0
% Constructing a line a which contains the point M_{a} and is parallel to the line M_{c}M_{b}
parallel a M_{a} M_{c}M_{b}
color 200 200 200
drawline a
color 0 0 0
% Constructing a line b which contains the point M_{b} and is parallel to the line M_{c}M_{a}
parallel b M_{b} M_{c}M_{a}
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 M_{b} and M_{c} are not the same; points M_{a} and M_{c} are not the same