Method: Geometry::Path#max

Defined in:
lib/geometry/path.rb

#maxPoint

Returns The upper-right corner of the bounding rectangle that encloses the Geometry::Path.

Returns:

  • The upper-right corner of the bounding rectangle that encloses the Geometry::Path



66
67
68
# File 'lib/geometry/path.rb', line 66

def max
    elements.reduce(elements.first.max) {|memo, e| memo.max(e.max) }
end