Construction in GCLC language
dim 120 120
point O 65 51.14
point M_{a} 65 40
point M_{c} 50 67.5
color 220 0 0
fontsize 11
cmark_t O
cmark_b M_{a}
cmark_lt M_{c}
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_{c} are not the same
% Constructing a line m_{c} which passes through point O and point M_{c}
line m_{c} O M_{c}
color 200 200 200
drawline m_{c}
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 c which is perpendicular to line m_{c} and which passes through point M_{c}
perp c M_{c} m_{c}
color 200 200 200
drawline c
color 0 0 0
% NDG: lines c and a are not parallel% DET: lines c and a are not the same
% Constructing a point B which belongs to line c and line a
intersec B c a
cmark_b B
% Constructing a point C such that BC/BM_{a}=2
towards C B M_{a} 2
cmark_b C
color 200 200 200
drawsegment B C
color 0 0 0
% Constructing a point A such that M_{c}A/M_{c}B=-1
towards A M_{c} B -1
cmark_t A
color 200 200 200
drawsegment B A
color 0 0 0
drawsegment A B
drawsegment A C
drawsegment B C
% Non-degenerate conditions: lines c and a are not parallel
% Determination conditions: lines c and a are not the same; points O and M_{c} are not the same; points O and M_{a} are not the same