Previous Up Next

27.7.2  Rhombuses in space

See Section 26.8.2 for rhombuses in the plane.

The rhombus command returns and draws a rhombus. It takes it 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); rhombus(A,B,P)
A,B,P:=point(0,0,0),point(3,3,3),point(0,0,3); rhombus(A,B,[P,pi/3])
rhombus(A,B,[P,pi/3],C,D); simplify(coordinates(C)), simplify(coordinates(D))
     



−3 
6
+18
4
,
−3 
6
+18
4
,
6
+9
2



,


−3 
6
+6
4
,
−3 
6
+6
4
,
6
+3
2



          

Previous Up Next