Previous Up Next

27.7.1  Squares in space

See Section 26.8.1 for squares in the plane.

The square command creates squares.

Examples

A,B,P:=point(0,0,0),point(3,3,3),point(0,0,3); square(A,B,P)
A,B,P:=point(0,0,0),point(3,3,3),point(0,0,3); square(A,B,P,C,D); coordinates(C),coordinates(D)
     
⎡
⎢
⎢
⎣
−3 √
2
+6
2
,
−3 √
2
+6
2
,3 √
2
+3⎤
⎥
⎥
⎦
,⎡
⎢
⎢
⎣
−
3
2
 √
2
,−
3
2
 √
2
,3 √
2
⎤
⎥
⎥
⎦
          

Previous Up Next