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

quatAxisAnglefunction

The turn of angle radians about an axis (any length but nought).

Import it

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

Definition

function quatAxisAngle(axis: Vec3, angle: number): Quat

Parameters

NameTypeDescription
axisVec3

A normalized three-dimensional rotation axis.

anglenumber

The rotation angle in radians.

Returns

Quat

The turn of angle radians about an axis (any length but nought).

Examples

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

console.log(quatAxisAngle([0,1,0],Math.PI/4));
[ 0, 0.3826834323650898, 0, 0.9238795325112867 ]

What it prints (run when this page was built)

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