Previous Up Next

12.8.2  Rhombuses in space: rhombus

See section 11.9.2 for rhombuses in the plane.

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

rhombus can take optional fourth and fifth arguments, which are variable names assigned to vertices C and D.
Input:

rhombus(A,B,[P,pi/3],C,D)

then:

simplify(coordinates(C)); simplify(coordinates(D))

Output:

[(-3*sqrt(6)+18)/4,(-3*sqrt(6)+18)/4,(3*sqrt(6)+9)/2],
[(-3*sqrt(6)+6)/4,(-3*sqrt(6)+6)/4,(3*sqrt(6)+3)/2]

Previous Up Next