elykwilliams / EvasionPaths

This project uses topological methods to track evasion paths in mobile sensor networks.

Home Page:https://elykwilliams.github.io/EvasionPaths/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Circular Domain

elykwilliams opened this issue · comments

@clark-mask go ahead and create a branch and add your Circular domain to boundary_geometry.py. Then push the branch to your github repo, and create a pull request to pull changes into my repo.

This should wait until #19 is merged for new interface

@clark-mask With the new boundary interface, you will need to implement two functions 1) reflect_point and 2) reflect_velocity.

In reflect_point(old_pt, new_pt) you are given the old position and the new position outside the domain. You should return the position after a kinetic reflection is done with the boundary. I expect that you will need to find the point where the sensor intersects the boundary, and reflect about the tangent line at that point.

In the reflect_velocity(old_pt, new_pt) you need to return the angle of the velocity vector a sensor has been reflected. For this, I know you will need the point of intersection. This can be done by manipulating the angle made with the tangent vector at the point of intersection, or compute the vector from the point of intersection to the reflected point and the return the angle of that vector.