distanceToTrapCalculator {LobsterCatch}R Documentation

This function calculates the Euclidean distance between Trap(s) and each lobster. The function is internally called in distanceToClosestTrap function.

Description

This function calculates the Euclidean distance between Trap(s) and each lobster. The function is internally called in distanceToClosestTrap function.

Usage

distanceToTrapCalculator(Lobster, Trap)

Arguments

Lobster

location of lobster in the grid in x and y coordinates.

Trap

location of trap in the grid in x and y coordinates.

Value

Returns the distance to trap.


[Package LobsterCatch version 0.1.0 Index]