Method: Geometry::Obround#width

Defined in:
lib/geometry/obround.rb

#widthObject



112
113
114
115
# File 'lib/geometry/obround.rb', line 112

def width
    min, max = @points.minmax {|a,b| a.x <=> b.x}
    max.x - min.x
end