Previous Up Next

27.8.1  Hexagons in space

See Section 26.9.1 for hexagons in the plane.

The hexagon command creates hexagons in space.

Examples

A,B,P:=point(0,0,0),point(3,3,3),point(0,0,3); hexagon(A,B,P)
hexagon(A,B,P,C,D,E,F); simplify(coordinates(C))
     
⎡
⎢
⎢
⎣
−3 √
6
+18
4
,
−3 √
6
+18
4
,
3 √
6
+9
2
⎤
⎥
⎥
⎦
          

Previous Up Next