Construction in GCLC language


dim 120 120

point C 110 40
point H_{a} 80 40
point H_{b} 89.36 77.83

color 220 0 0
fontsize 11

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

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

color 200 200 200
drawline a
color 0 0 0



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

color 200 200 200
drawline b
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 b are not parallel% DET:  lines h_{a} and b are not the same
% Constructing a point A which belongs to line h_{a} and line b
intersec A h_{a} b 
cmark_t A



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

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



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



drawsegment A B
drawsegment A C
drawsegment B C

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