Previous Up Next

27.11.9  Checking whether an object in space is an equilateral triangle

See Section 26.15.5 for checking for equilateral triangles in 2D geometry.

The is_equilateral command determines whether or not a geometric object is an equilateral triangle.

Examples

is_equilateral([2,0,0],[0,0,0],[1,sqrt(3),0])
     
1           
T:=triangle_equilateral([2,0,0],[0,0,0],[1,sqrt(3),0]); is_equilateral(T)
     
1           
is_equilateral([2,0,0],[0,2,0],[1,1,0])
     
0           

Previous Up Next