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

quatMulfunction

Two rotations in turn: b after a.

Import it

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

Definition

function quatMul(b: Quat, a: Quat): Quat

Parameters

NameTypeDescription
bQuat

The second quaternion or vector specified by the signature.

aQuat

The first quaternion or vector specified by the signature.

Returns

Quat

Two rotations in turn: b after a.

Examples

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

const q: Quat = [0,0,0,1];
console.log(quatMul(q,q));
[ 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.