whichDir: Return the direction number from 'current' to 'other' cell of...

Description Usage Arguments Value

View source: R/whichDir.R

Description

Return the direction number from current to other cell of a hexmatrix.

Usage

1
whichDir(current, other, m)

Arguments

current

The index of the actual cell in hexmatrix

other

The index of the neighbouring cell

m

The underlying hexmatrix or hexarray

Value

A number from 1 to 6 indicating the direction from current to other cell. NA is returned if current and other are not neighbours.


beerda/hexmatrix documentation built on May 2, 2021, 4:15 a.m.