Skip to the content

Meikyuu迷宮

Generate seeded mazes and arrow puzzles, follow numbered levels, and play on flat grids or three-dimensional surfaces.

Meikyuu is the Japanese word 迷宮 for labyrinth. About the name

Contents

Reference · Surface maze rules and geometry

quatTurnfunction

A point turned.

Import it

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

Definition

function quatTurn(q: Quat, p: Vec3): Vec3

Parameters

NameTypeDescription
qQuat

The current normalized rotation quaternion.

pVec3

A three-dimensional point to rotate.

Returns

Vec3

A point turned.

Examples

import type { Quat } from "@johnmorrisdotca/meikyuu/3d";
import { quatTurn } from "@johnmorrisdotca/meikyuu/3d";

const q: Quat = [0,0,0,1];
console.log(quatTurn(q,[1,0,0]));
[ 1, 0, 0 ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/meikyuu 3.2.0.