Previous Up Next

27.6.4  Equilateral triangles in space

See Section 26.7.4 for equilateral triangles in the plane.

The equilateral_triangle command returns and draws equilateral triangles.

Examples

A,B,p:=point(0,0,0),point(3,3,3),point(0,0,3); equilateral_triangle(A,B,P)
A,B,P:=point(0,0,0),point(3,3,3),point(0,0,3); equilateral_triangle(A,B,P,C); simplify(coordinates(C))
     



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



          

Previous Up Next