diff --git a/docs/src/lib/binary_functions.md b/docs/src/lib/binary_functions.md index 969fde98e0..3fffa59824 100644 --- a/docs/src/lib/binary_functions.md +++ b/docs/src/lib/binary_functions.md @@ -34,6 +34,7 @@ end ## Check for emptiness of intersection ```@docs +disjoint is_intersection_empty(::AbstractHyperrectangle{N}, ::AbstractHyperrectangle{N}, ::Bool=false) where {N<:Real} is_intersection_empty(::AbstractHyperrectangle{N}, ::AbstractSingleton{N}, ::Bool=false) where {N<:Real} is_intersection_empty(::AbstractSingleton{N}, ::LazySet{N}, ::Bool=false) where {N<:Real} diff --git a/src/is_intersection_empty.jl b/src/is_intersection_empty.jl index 052371e5fb..6e61c761f1 100644 --- a/src/is_intersection_empty.jl +++ b/src/is_intersection_empty.jl @@ -1,4 +1,5 @@ -export is_intersection_empty +export is_intersection_empty, + disjoint # --- AbstractHyperrectangle --- @@ -678,3 +679,14 @@ function is_intersection_empty(hp::Union{Hyperplane{N}, Line{N}}, )::Union{Bool, Tuple{Bool,Vector{N}}} where N<:Real return is_intersection_empty(X, hp, witness) end + + +# --- alias --- + + +""" + disjoint(X, Y) + +An alternative name for `is_intersection_empty(X, Y)`. +""" +const disjoint = is_intersection_empty