Disc型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The round bodies the particles must not enter (a character, a coin): centre and radius.
インポート
import type { Disc } from "@johnmorrisdotca/karakuri/physics";
定義
interface Disc {
x: number;
y: number;
r: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
x | number | |
y | number | |
r | number |
例
import type { Disc } from "@johnmorrisdotca/karakuri/physics";
const value: Disc = {x:0,y:0,r:1};
console.log(value);{ x: 0, y: 0, r: 1 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。