class ChunkyPNG::Point

def <=>(other)

Returns:
  • (-1, 0, 1) - -1 If this point comes before the other one, 1

Parameters:
  • other (ChunkyPNG::Point) -- The point to compare this point with.
def <=>(other)
  (y <=> other.y) == 0 ? x <=> other.x : y <=> other.y
end