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

quatAnglefunction

How far apart two rotations are, in radians, from 0 to pi.

Import it

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

Definition

function quatAngle(a: Quat, b: Quat): number

Parameters

NameTypeDescription
aQuat

The first quaternion or vector specified by the signature.

bQuat

The second quaternion or vector specified by the signature.

Returns

number

How far apart two rotations are, in radians, from 0 to pi.

Examples

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

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

What it prints (run when this page was built)

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