JuliaMath / IntervalSets.jl

Interval Sets for Julia
https://juliamath.github.io/IntervalSets.jl/
Other
99 stars 26 forks source link

Center of Rectangle? #144

Closed philip-stuckey closed 1 year ago

philip-stuckey commented 1 year ago

edit: sorry, accidentally pressed enter before writing this

Would it make sense to define center(r::Rectangle) = center.(components(r))? Would it work for HyperRectangle?

daanhb commented 1 year ago

May make sense for a ProductDomain (looks like an issue for DomainSets.jl, not here). In that case, yes, it would work for a HyperRectangle

philip-stuckey commented 1 year ago

Oops, wrong repository, sorry.

daanhb commented 1 year ago

No problem, how could you know - feel free to file the same comment with DomainSets.jl