UNPKG

surrounding-coordinates

Version:

A package that implements a coordinate class and a function on its prototype that allows you to find surrounding coordinates in a square matrix of length matrixLen

3 lines (2 loc) 140 B
# Coordinate A simple Coordinate class that has a method for finding valid surrounding coordinates around it in a square matrix of length N