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.
with⁡geom3d:
Define triangle ABC with vertices A, B and C.
triangle⁡ABC,point⁡A,0,0,0,point⁡B,2,0,0,point⁡C,1,3,0:
Find the altitude of ABC at A
altitude⁡hA1,A,ABC
hA1
form⁡hA1
line3d
detail⁡hA1
name of the objecthA1form of the objectline3dequation of the line_x=9⁢_t5,_y=3⁢_t5,_z=0
altitude⁡hA2,A,ABC,H
hA2
form⁡hA2
segment3d
detail⁡hA2
name of the objecthA2form of the objectsegment3dthe 2 ends of the segment0,0,0,95,35,0
DefinedAs⁡hA2
A,H
See Also
geom3d[triangle]
Download Help Document