26.6.9 Altitude of a triangle
The
altitude
command finds an altitude line of a triangle.
altitude
takes three arguments:
a
,
b
,
c
, three points.
altitude(
a
,
b
,
c
)
returns and draws the altitude line to the triangle with vertices
a
,
b
,
c
, through
a
and perpedicular to the segment from
b
to
c
.
Example
T
:=
triangle
(1/2,1+
i
/2,-2/3+
i
,
color
=
blue
);
altitude
(1/2,1+
i
/2,-2/3+
i
)