class PDF::Reader::Rectangle
def set_corners(x1, y1, x2, y2)
def set_corners(x1, y1, x2, y2) @bottom_left = PDF::Reader::Point.new( [x1, x2].min, [y1, y2].min, ) @bottom_right = PDF::Reader::Point.new( [x1, x2].max, [y1, y2].min, ) @top_left = PDF::Reader::Point.new( [x1, x2].min, [y1, y2].max, ) @top_right = PDF::Reader::Point.new( [x1, x2].max, [y1, y2].max, ) end