faceOfSlot関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The face letter a solved cube shows at this slot.
インポート
import { faceOfSlot } from "@johnmorrisdotca/kyuubu";
定義
function faceOfSlot(at: number, n: number): CubeFace
引数
| 名前 | 型 | 説明 |
|---|---|---|
at | number | The sticker’s index in the state string. |
n | number | The cube’s side length. |
戻り値
"U" | "R" | "F" | "D" | "L" | "B"
The face letter a solved cube shows at this slot.
例
import { faceOfSlot } from "@johnmorrisdotca/kyuubu";
console.log(faceOfSlot(0, 3));U出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。