bfoz / geometry

Geometric primitives for Ruby
https://rubygems.org/gems/geometry
BSD 2-Clause "Simplified" License
47 stars 18 forks source link

Figure out why overriding #closed? in Polygon breaks tests #69

Open bfoz opened 10 years ago

bfoz commented 10 years ago

There's no reason for Polygon#closed? to fall through to Polyline#closed?. Polygons are always closed, so don't bother checking it. But, overriding the method seems to break all of the tests involving #outset. This needs to be looked into.