length関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The length of (x, y).
インポート
import { length } from "@johnmorrisdotca/karakuri/physics";
定義
function length(x: number, y: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
x | number | The horizontal coordinate or vector component in native units. |
y | number | The vertical coordinate or vector component in native units. |
戻り値
number
The length of (x, y).
例
import { length } from "@johnmorrisdotca/karakuri/physics";
console.log(length(3,4));5出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。