See Section 26.15.9 for checking for rhombuses in 2D geometry.
The is_rhombus command determines whether or not a geometric object is a rhombus.
is_rhombus([2,0,0],[0,1,0],[-2,0,0],[0,-1,0]) |
|
R:=rhombus([0,0,0],[2,0,0],[[0,0,1],pi/4]); is_rhombus(S) |
|
is_rhombus([2,2,0],[-2,2,0],[-2,-1,0],[2,-1,0]) |
|