Skip to content

Commit 305c856

Browse files
committed
closed intervals only
1 parent a9e81ad commit 305c856

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/IntervalSetsExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ module IntervalSetsExt
33
using IntervalSets
44
using GeometryBasics
55

6-
GeometryBasics.HyperRectangle(ints::Vararg{Interval, N}) where {N} = HyperRectangle{N}(ints...)
7-
GeometryBasics.HyperRectangle{N}(ints::Vararg{Interval, N}) where {N} = HyperRectangle{N}(
6+
GeometryBasics.HyperRectangle(ints::Vararg{ClosedInterval, N}) where {N} = HyperRectangle{N}(ints...)
7+
GeometryBasics.HyperRectangle{N}(ints::Vararg{ClosedInterval, N}) where {N} = HyperRectangle{N}(
88
Vec(leftendpoint.(ints)),
99
Vec(rightendpoint.(ints) .- leftendpoint.(ints))
1010
)
11-
GeometryBasics.HyperRectangle{N,T}(ints::Vararg{Interval, N}) where {N,T} = HyperRectangle{N,T}(
11+
GeometryBasics.HyperRectangle{N,T}(ints::Vararg{ClosedInterval, N}) where {N,T} = HyperRectangle{N,T}(
1212
Vec(leftendpoint.(ints)),
1313
Vec(rightendpoint.(ints) .- leftendpoint.(ints))
1414
)

0 commit comments

Comments
 (0)