Construction in GCLC language
dim 120 120
point B 20 40
point H_{a} 80 40
point H_{c} 68.91 84.83
color 220 0 0
fontsize 11
cmark_b B
cmark_b H_{a}
cmark_lt H_{c}
color 0 0 0
fontsize 10
% DET: points B and H_{a} are not the same
% Constructing a line a which passes through point B and point H_{a}
line a B H_{a}
color 200 200 200
drawline a
color 0 0 0
% DET: points B and H_{c} are not the same
% Constructing a line c which passes through point B and point H_{c}
line c B H_{c}
color 200 200 200
drawline c
color 0 0 0
% 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
% NDG: lines h_{a} and c are not parallel% DET: lines h_{a} and c are not the same
% Constructing a point A which belongs to line h_{a} and line c
intersec A h_{a} c
cmark_t A
% Constructing a line h_{c} which is perpendicular to line c and which passes through point H_{c}
perp h_{c} H_{c} c
color 200 200 200
drawline h_{c}
color 0 0 0
% NDG: lines h_{c} and a are not parallel% DET: lines h_{c} and a are not the same
% Constructing a point C which belongs to line h_{c} and line a
intersec C h_{c} a
cmark_b C
drawsegment A B
drawsegment A C
drawsegment B C
% Non-degenerate conditions: lines h_{c} and a are not parallel; lines h_{a} and c are not parallel
% Determination conditions: lines h_{c} and a are not the same; lines h_{a} and c are not the same; points B and H_{c} are not the same; points B and H_{a} are not the same