measuredParts関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Which parts of an object's drawn shape are measured: the size, the axis ratio and the angle. An object whose axis ratio or angle is not measured is drawn round, so oval says whether the
drawing is the measured ellipse.
インポート
import { measuredParts } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic-shape
定義
function measuredParts(shape: DeepSkyShape): { size: boolean; ratio: boolean; angle: boolean; oval: boolean; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
shape | DeepSkyShape | The shape from |
戻り値
{ size: boolean; ratio: boolean; angle: boolean; oval: boolean; }
size, ratio and angle as true where measured, and oval as true where both of the last two are.
例
import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyShape, measuredParts } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
console.log(measuredParts(deepSkyShape(deepSkyObject("M42")!)));{ size: true, ratio: false, angle: false, oval: false }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。