104 105 106 107
# File 'lib/geometry/square.rb', line 104 def width min, max = @points.minmax {|a,b| a.x <=> b.x} max.x - min.x end