Non-convex polygon (Polygon)
LazySets.PolygonModule.Polygon
— TypePolygon{N, VN<:AbstractVector{N}} <: LazySet{N}
Type that represents a non-convex polygon by its vertices.
Fields
vertices
– the list of vertices (in clockwise or counter-clockwise order)
Examples
A non-convex polygon in vertex representation can be constructed by passing the list of vertices. For example, we can build a tooth:
julia> P = Polygon([[0.0, 0], [0, 2], [2, 2], [2, 0], [1, 1]]);
julia> P.vertices
5-element Vector{Vector{Float64}}:
[0.0, 0.0]
[0.0, 2.0]
[2.0, 2.0]
[2.0, 0.0]
[1.0, 1.0]
Undocumented implementations:
Inherited from LazySet
:
an_element
area
center
complement
concretize
constraints
copy(::Type{LazySet})
diameter
eltype
eltype
extrema
extrema
high
high
isoperation
ispolyhedral
low
low
norm
radius
rectify
reflect
singleton_list
surface
vertices
affine_map
exponential_map
is_interior_point
linear_map
project
sample
scale
scale!
translate
translate!
cartesian_product
convex_hull
exact_sum
≈
isdisjoint
==
isequivalent
⊂
⊆
minkowski_difference
minkowski_sum