This function determines if lobster passes through a trap and determines if it is caught
1 | trapInPath(loc1, loc2, trap_loc, how_close = 0.1)
|
loc1 |
is the location of lobster at the start of each time step |
loc2 |
is the location of lobster at the end of each time step |
trap_loc |
is the location of trap |
how_close |
set the area of trap within which the catch occurs, the default value is 0.1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.