CircleShape型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A disc, placed in the body's own frame (its origin is the body's centre of mass for a dynamic body).
インポート
import type { CircleShape } from "@johnmorrisdotca/karakuri/physics";
定義
interface CircleShape {
kind: "circle";
x: number;
y: number;
r: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kind | "circle" | |
x | number | |
y | number | |
r | number |
例
import type { CircleShape } from "@johnmorrisdotca/karakuri/physics";
const value: CircleShape = {kind:"circle",x:0,y:0,r:3};
console.log(value);{ kind: 'circle', x: 0, y: 0, r: 3 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。