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

quatBetweenfunction

The shortest turn that carries the direction a onto the direction b.

Import it

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

Definition

function quatBetween(a: Vec3, b: Vec3): Quat

Parameters

NameTypeDescription
aVec3

The first quaternion or vector specified by the signature.

bVec3

The second quaternion or vector specified by the signature.

Returns

Quat

The shortest turn that carries the direction a onto the direction b.

Examples

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

console.log(quatBetween([1,0,0],[0,1,0]));
[ 0, 0, 0.7071067811865475, 0.7071067811865475 ]

What it prints (run when this page was built)

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