Previous Up Next

12.7.3  Right triangles in space: right_triangle

See section 11.8.3 for right triangles in the plane.

The right_triangle command returns and draws a right triangle. It takes as arguments one of the following:

right_triangle can take an optional fourth argument, which is a variable which will be assigned to the third vertex of the triangle.
Input:

right_triangle(A,B,[P,2],C)

then:

coordinates(C)

Output:

[-3*sqrt(2), -3*sqrt(2), 6*sqrt(2)]

Previous Up Next