class ChunkyPNG::Dimension

def include?(*point_like)

Other tags:
    See: ChunkyPNG.Point -

Returns:
  • (true, false) - True iff the x and y coordinate fall in this dimension.

Parameters:
  • point_like (ChunkyPNG::Point, ...) -- A point-like to bounds-check.
def include?(*point_like)
  point = ChunkyPNG::Point(*point_like)
  point.x >= 0 && point.x < width && point.y >= 0 && point.y < height
end