distanceToTrapCalculator {LobsterCatch} | R Documentation |
distanceToClosestTrap
function.This function calculates the Euclidean distance between Trap(s) and each lobster. The function is internally called
in distanceToClosestTrap
function.
distanceToTrapCalculator(Lobster, Trap)
Lobster |
location of lobster in the grid in x and y coordinates. |
Trap |
location of trap in the grid in x and y coordinates. |
Returns the distance to trap.