Reference · Mazes, arrows and mixed boards
toDisplayfunction
A logical point as it is shown.
Import it
import { toDisplay } from "@johnmorrisdotca/meikyuu";
Definition
function toDisplay(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 logical point as it is shown.
Examples
import { toDisplay } from "@johnmorrisdotca/meikyuu";
console.log(toDisplay(1,[10,20]));[ 20, -10 ]What it prints (run when this page was built)