Previous Up Next

27.11.13  Checking whether an object in space is a rhombus

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.

Examples

is_rhombus([2,0,0],[0,1,0],[-2,0,0],[0,-1,0])
     
1           
R:=rhombus([0,0,0],[2,0,0],[[0,0,1],pi/4]); is_rhombus(S)
     
1           
is_rhombus([2,2,0],[-2,2,0],[-2,-1,0],[2,-1,0])
     
0           

Previous Up Next