Given four points in 2D space, determine if they form a square. All four sides must be equal, and all four angles must be 90 degrees.
This problem tests distance calculations, slope relationships, and geometric validation. You need to check side lengths and corner angles.
The challenge is handling all possible orderings of the four points.