Previous Up Next

27.6.3  Right triangles in space

See Section 26.7.3 for right triangles in the plane.

The right_triangle command returns and draws a right triangle. It can take its arguments in two different ways.

  1. Three points.
  2. Three points and a real number.

Examples

A,B,P:=point(0,0,0),point(3,3,3),point(0,0,3); right_triangle(A,B,P);
right_triangle(A,B,[P,2])
right_triangle(A,B,[P,-2])
right_triangle(A,B,[P,2],C); coordinates(C)
     


−3 
2
,−3 
2
,6 
2


          

Previous Up Next