geom3d
altitude
find the altitude of a given triangle
Calling Sequence
Parameters
Description
Examples
altitude(hA, A, ABC, H)
hA
-
the A-altitude of ABC
A
vertex of ABC
ABC
triangle
H
(optional) name
An altitude from the vertex A of a triangle ABC is a line segment (or its extension) from vertex A perpendicular to the side BC.
If the optional argument H is given, the object returned (hA) is a line segment AH where H is the projection of A onto the side BC. If it is not given, the object returned is a line passing through A and is perpendicular to the side BC.
For a detailed description of the altitude hA, use the routine detail (i.e., detail(hA);)
The command with(geom3d,altitude) allows the use of the abbreviated form of this command.
withgeom3d:
Define triangle ABC with vertices A, B and C.
triangleABC,pointA,0,0,0,pointB,2,0,0,pointC,1,3,0:
Find the altitude of ABC at A
altitudehA1,A,ABC
hA1
formhA1
line3d
detailhA1
name of the objecthA1form of the objectline3dequation of the line_x=9_t5,_y=3_t5,_z=0
altitudehA2,A,ABC,H
hA2
formhA2
segment3d
detailhA2
name of the objecthA2form of the objectsegment3dthe 2 ends of the segment0,0,0,95,35,0
DefinedAshA2
A,H
See Also
geom3d[triangle]
Download Help Document