Construction in GCLC language


dim 120 120

point H_{a} 80 40
point H_{b} 89.36 77.83
point H 80 72.73

color 220 0 0
fontsize 11

cmark_b H_{a}
cmark_rt H_{b}
cmark_rt H
color 0 0 0
fontsize 10

% DET:  points H_{a} and H are not the same
% Constructing a line h_{a} which passes through point H_{a} and point H
line h_{a} H_{a} H 

color 200 200 200
drawline h_{a}
color 0 0 0



% DET:  points H_{b} and H are not the same
% Constructing a line h_{b} which passes through point H_{b} and point H
line h_{b} H_{b} H 

color 200 200 200
drawline h_{b}
color 0 0 0




% Constructing a line a which is perpendicular to line h_{a} and which passes through point H_{a}
perp a H_{a} h_{a} 

color 200 200 200
drawline a
color 0 0 0



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



% 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 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


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



drawsegment A B
drawsegment A C
drawsegment B C

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