UNPKG

@arayutw/matrix-pointer

Version:

This is a library that assists in focusing on any position of a matrix and moving relative or absolute to that position.

4 lines (3 loc) 287 B
import { Id, Matrix, Position } from "./class"; export declare function findOneDirectionY(matrix: Matrix, nx: number, sy: number | null, next: boolean): Position | null; export declare function findOneDirectionX(row: Id[], sx: number | null, ny: number, next: boolean): Position | null;