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.
is_rectangle([2,0,0],[2,2,0],[0,2,0]) |
|
is_rectangle([2,2,0],[-2,2,0],[-2,-1,0],[2,-1,0]) |
|