Syntax
is_square(Point1, Point2, Point3, Point4)
Description
Tests whether or not a set of four points are vertices of a square. Returns 1 if they are and 0 otherwise.
Example
is_square(point(0,0), point(4,2), point(2,6), point(-2,4)) returns 1
is_square — Discussion