Previous Up Next

27.11.11  Checking whether an object in space is a right triangle or a rectangle

See Section 26.15.7 for checking for right triangles and rectangles in 2D geometry.

The is_rectangle command determines whether or not a geometric object is an rectangle or a right triangle.

Examples

is_rectangle([2,0,0],[2,2,0],[0,2,0])
     
2           
is_rectangle([2,2,0],[-2,2,0],[-2,-1,0],[2,-1,0])
     
1           

Previous Up Next