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
| Name | Type | Description |
|---|---|---|
a | Quat | The first quaternion or vector specified by the signature. |
b | Quat | 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));0What it prints (run when this page was built)