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
| Name | Type | Description |
|---|---|---|
a | Vec3 | The first quaternion or vector specified by the signature. |
b | Vec3 | 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)