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

quatNormalizefunction

A rotation made one again: the turns a drag adds up carry a little error, which this takes out.

Import it

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

Definition

function quatNormalize(q: Quat): Quat

Parameters

NameTypeDescription
qQuat

The current normalized rotation quaternion.

Returns

Quat

A rotation made one again: the turns a drag adds up carry a little error, which this takes out.

Examples

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

console.log(quatNormalize([0,0,0,2]));
[ 0, 0, 0, 1 ]

What it prints (run when this page was built)

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