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