Previous Up Next

25.11.12  Checking whether an object in space is a square

See Section 24.15.8 for checking for squares in two-dimensional geometry.

The is_square command determines whether or not a geometric object is a square.

Examples

is_square([2,2,0],[-2,2,0],[-2,-2,0],[2,-2,0])
     
1           
S:=square([0,0,0],[2,0,0],[0,0,1]); is_square(S)
     
1           
is_square([2,2,0],[-2,2,0],[-2,-1,0],[2,-1,0])
     
0           

Previous Up Next