wholeMove関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The whole cube turned in the hand, as x, y or z.
インポート
import { wholeMove } from "@johnmorrisdotca/kyuubu";
定義
function wholeMove(letter: "x" | "y" | "z", amount: "cw" | "half" | "ccw"): CubeMove
引数
| 名前 | 型 | 説明 |
|---|---|---|
letter | "x" | "y" | "z" | The slice letter M, E or S; whole-cube turns use x, y or z. |
amount | "cw" | "half" | "ccw" | The turn direction: cw, half or ccw. |
戻り値
CubeMove
The whole cube turned in the hand, as x, y or z.
例
import { wholeMove } from "@johnmorrisdotca/kyuubu";
console.log(wholeMove("x", "cw"));{ axis: 0, layer: 'all', turns: 3 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。