-
Notifications
You must be signed in to change notification settings - Fork 33
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
Implement hrep from vrep for VPolygon #5
Labels
feature ➕
A new feature
Comments
This is just adding an edge for each consecutive pair of vertices, right? And I think this is optimal. function tohrep(P::VPolygon{N})::AbstractHPolygon{N} where {N<:Real}
@inline function to_lc(p1::Vector{N}, p2::Vector{N})::LinearConstraint{N}
# TODO
end
n = length(P.vertices_list)
constraints_list = Vector{LinearConstraint{N}}(n)
for i in 1:n-1
constraints_list[i] = to_lc(P.vertices_list[i+1], P.vertices_list[i])
end
constraints_list[n] = to_lc(P.vertices_list[1], P.vertices_list[end])
end |
3 tasks
schillic
added a commit
that referenced
this issue
Jul 26, 2018
#5 - Implement hrep from vrep for VPolygon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have hrep -> vrep, but we are missing the converse.
The text was updated successfully, but these errors were encountered: