Skip to contents

Get values adjacent to the target

Usage

get_adjacent_values(yy, xx, data, yCount = 1, xCount = 1)

Arguments

yy

The target y coordinate

xx

The target x coordinate

data

A matrix

yCount

The number of rows to include on either side of the target

xCount

The number of columns to include on either side of the target

Value

A matrix of the dimensions specified

Details

Does include the target point. If a wall is clipped, the dimensions will not include the clipped wall.