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

[FR] : polygon billiard from vertices #188

Closed
Datseris opened this issue Sep 23, 2019 · 1 comment · Fixed by #191
Closed

[FR] : polygon billiard from vertices #188

Datseris opened this issue Sep 23, 2019 · 1 comment · Fixed by #191

Comments

@Datseris
Copy link
Member

Datseris commented Sep 23, 2019

It would be very convenient to have a function that takes as a input a vector of SVector{2}. This vector, call it vex will represent the vertices of a polygon billiard.

The function would then create a bunch of wall obstacles, each starting from the vertex i and ending at i+1. Optionally the function should be choosen to use FiniteWall or infiniteWall for the wall type.

The normal vector in every case should be to the right of the direction of the wall obstacle, i.e. to the right of the vector defined by end - start.

@Datseris
Copy link
Member Author

This is super easily done after #183 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant