Reference · Options, materials, stacks and wear
stackHeightMmfunction
The height of a stack of cards, in millimetres: the count times the thickness of one, to a thousandth of a millimetre.
Import it
import { stackHeightMm } from "@johnmorrisdotca/fuda-cards";
Definition
function stackHeightMm(count: number, thicknessMm: number): number
Parameters
| Name | Type | Description |
|---|---|---|
count | number | How many cards; a count under one is one card. |
thicknessMm | number | The thickness of one card in millimetres. |
Returns
number
The height of the stack in millimetres.
Examples
import { cardMaterial, stackHeightMm } from "@johnmorrisdotca/fuda-cards";
const stock = cardMaterial("paper-310-black-core");
console.log(stackHeightMm(52, stock?.thicknessMm ?? 0.325)); // 16.916.9What it prints (run when this page was built)