Reference · Pipes, rules and solving
quartersBetweenfunction
The fewest quarter turns, clockwise, that make from into to; null when they are not the same shape.
Import it
import { quartersBetween } from "@johnmorrisdotca/suido";
Definition
function quartersBetween(from: number, to: number): number | null
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The original pipe mask or mask array specified by the signature. |
to | number | The desired pipe mask or mask array specified by the signature. |
Returns
number | null
The fewest quarter turns, clockwise, that make from into to; null when they are not the same shape.
Examples
import { quartersBetween } from "@johnmorrisdotca/suido";
console.log(quartersBetween(3,6));1What it prints (run when this page was built)