本文へ移動

Meikyuu迷宮

シード付きの迷路と矢印パズルを作り、番号付きの問題を進め、平面や立体表面で遊べます。

「迷宮」は迷路のように入り組んだ場所を表す言葉です。 名前について(英語)

目次

リファレンス · 立体表面の規則と形

EDGE_SAFE定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

THE SOLID TURNS BY ITSELF to keep the end of a line being drawn in view. The end of the line is in trouble when it faces away from the viewer (EDGE_SAFE, a cell turned this far from squarely on is hard to draw on) or when a passage leads from it to a cell that is out of sight or nearly edge-on (EDGE_NEIGHBOUR): a line at the edge of a cube's face, with the next face round the corner, is the case that matters, because that cell is hidden however squarely the head faces you. Then it turns the solid so that the head and the cells it leads to, taken together, face the viewer, which puts the edge between them at the front, where both are seen at a slant. It turns gently, up to EDGE_RATE radians a second and slower the less the need, and stops when neither trouble is left. It answers the new turn, or null when there is nothing to do.

インポート

import { EDGE_SAFE } from "@johnmorrisdotca/meikyuu/3d";

定義

const EDGE_SAFE: 0.62 = 0.62

例

import { EDGE_SAFE } from "@johnmorrisdotca/meikyuu/3d";
console.log(EDGE_SAFE);
0.62

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/meikyuu 3.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。