See Section 24.8.2 for rhombuses in the plane.
The rhombus command returns and draws a rhombus. It takes it arguments in two different ways.
If the arguments var1 and var2 are given, they will be assigned to the vertices C and D.
If the arguments var1 and var2 are given, they will be assigned to the vertices C and D.
A:=point(0,0,0); B:=point(3,3,3); P:=point(0,0,3); rhombus(A,B,P) |
A:=point(0,0,0); B:=point(3,3,3); P:=point(0,0,3); rhombus(A,B,[P,pi/3]) |
rhombus(A,B,[P,pi/3],C,D); simplify(coordinates(C)), simplify(coordinates(D)) |
|