See section 12.16.9 for checking for rhombuses in two-dimensional geometry.
The is_rhombus command as arguments either four points or a geometric object.
is_rhombus returns 1 if the four points are the vertices of a rhombus or if the geometric object is a rhombus, it returns 0 otherwise.
Input:
Output:
Input:
then:
Output:
Input:
Output: