Reference · Mazes, arrows and mixed boards
toLogicalfunction
A point of the picture as the maze has it: the inverse of toDisplay.
Import it
import { toLogical } from "@johnmorrisdotca/meikyuu";
Definition
function toLogical(turn: Turn, [x, y]: Point): [number, number]
Parameters
| Name | Type | Description |
|---|---|---|
turn | Turn | The native quarter-turn setting. |
options | Point | Native display/mount choices, or the point tuple specified by this signature. |
Returns
[number, number]
A point of the picture as the maze has it: the inverse of toDisplay.
Examples
import { toLogical } from "@johnmorrisdotca/meikyuu";
console.log(toLogical(1,[10,20]));[ -20, 10 ]What it prints (run when this page was built)