Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outsource Line2D to its own module #3577

Merged
merged 4 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 21 additions & 11 deletions docs/src/lib/sets/Line2D.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,37 @@ CurrentModule = LazySets

```@docs
Line2D
dim(::Line2D)
σ(::AbstractVector, ::Line2D)
∈(::AbstractVector, ::Line2D)
```

## Operations

```@docs
an_element(::Line2D)
rand(::Type{Line2D})
isbounded(::Line2D)
isuniversal(::Line2D, ::Bool=false)
isempty(::Line2D)
constrained_dimensions(::Line2D)
constraints_list(::Line2D)
translate(::Line2D, ::AbstractVector)
dim(::Line2D)
isbounded(::Line2D)
isempty(::Line2D)
isuniversal(::Line2D, ::Bool=false)
rand(::Type{Line2D})
∈(::AbstractVector, ::Line2D)
project(::AbstractVector, ::Line2D)
σ(::AbstractVector, ::Line2D)
translate(::Line2D, ::AbstractVector)
```

```@meta
CurrentModule = LazySets
```

Inherited from [`LazySet`](@ref):
* [`diameter`](@ref diameter(::LazySet, ::Real))
* [`high`](@ref high(::LazySet))
* [`high`](@ref high(::LazySet, ::Int))
* [`low`](@ref low(::LazySet))
* [`low`](@ref low(::LazySet, ::Int))
* [`norm`](@ref norm(::LazySet, ::Real))
* [`radius`](@ref radius(::LazySet, ::Real))
* [`diameter`](@ref diameter(::LazySet, ::Real))
* [`low`](@ref low(::LazySet, ::Int))
* [`high`](@ref high(::LazySet, ::Int))
* [`reflect`](@ref reflect(::LazySet))

Inherited from [`AbstractPolyhedron`](@ref):
Expand Down
5 changes: 4 additions & 1 deletion src/LazySets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ include("Sets/HPolytope.jl")
include("Sets/HPolyhedron.jl")
include("Sets/Hyperplane.jl")
include("Sets/Hyperrectangle.jl")
include("Sets/Line2D.jl")

include("Sets/Line2D/Line2DModule.jl")
@reexport using ..Line2DModule: Line2D
using ..Line2DModule: _linear_map_hrep_helper

include("Sets/Line/LineModule.jl")
@reexport using ..LineModule: Line, direction
Expand Down
Loading
Loading