stackHeightMm関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The height of a stack of cards, in millimetres: the count times the thickness of one, to a thousandth of a millimetre.
インポート
import { stackHeightMm } from "@johnmorrisdotca/fuda-cards";
定義
function stackHeightMm(count: number, thicknessMm: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
count | number | How many cards; a count under one is one card. |
thicknessMm | number | The thickness of one card in millimetres. |
戻り値
number
The height of the stack in millimetres.
例
import { cardMaterial, stackHeightMm } from "@johnmorrisdotca/fuda-cards";
const stock = cardMaterial("paper-310-black-core");
console.log(stackHeightMm(52, stock?.thicknessMm ?? 0.325)); // 16.916.9出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。