lib/perfect_shape/line.rb in perfect-shape-0.0.10 vs lib/perfect_shape/line.rb in perfect-shape-0.0.11
- old
+ new
@@ -183,9 +183,10 @@
BigDecimal(::Math.sqrt(point_segment_distance_square(x1, y1, x2, y2, px, py)).to_s)
end
end
include MultiPoint
+ include Equalizer.new(:points)
# Checks if line contains point (two-number Array or x, y args), with distance tolerance (0 by default)
#
# @param x The X coordinate of the point to test.
# @param y The Y coordinate of the point to test.