Cosine: A Tool for Constraining Spatial Neighbourhoods in Marine Environments