geometry[altitude] - find the altitude of a given triangle
|
Calling Sequence
|
|
altitude(hA, A, ABC, H)
|
|
Parameters
|
|
hA
|
-
|
the A-altitude of ABC
|
A
|
-
|
vertex of ABC
|
ABC
|
-
|
triangle
|
H
|
-
|
(optional) name
|
|
|
|
|
Description
|
|
•
|
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))
|
•
|
Note that the routine only works if the vertices of the triangle are known.
|
•
|
The command with(geometry,altitude) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
assume that the names of the horizontal and vertical axes are _x and _y, respectively
| |
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
|
|
Download Help Document
Was this information helpful?