GeometryBasics.jl
GeometryBasics.jl copied to clipboard
constuct Rectangles from Intervals
straightforward constructor implementation in an extension
One issue is that the boundaries of geometries are always closed but in this PR you can convert open intervals to geometries, so information may be lost and can cause correctness bugs.
One option would be to error on open intervals, but that may also be annoying too.
changed to only accept closed intervals – they are returned by 0..1 syntax, and by far the most common kind of intervals