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.
If the variable name var is given, it will be assigned to the vertex C.
If the variable name var is given, it will be assigned to the vertex C.
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) |
|