toLogical関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A point of the picture as the maze has it: the inverse of toDisplay.
インポート
import { toLogical } from "@johnmorrisdotca/meikyuu";
定義
function toLogical(turn: Turn, [x, y]: Point): [number, number]
引数
| 名前 | 型 | 説明 |
|---|---|---|
turn | Turn | The native quarter-turn setting. |
options | Point | Native display/mount choices, or the point tuple specified by this signature. |
戻り値
[number, number]
A point of the picture as the maze has it: the inverse of toDisplay.
例
import { toLogical } from "@johnmorrisdotca/meikyuu";
console.log(toLogical(1,[10,20]));[ -20, 10 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。