deepSkyOutline関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The outline of an object on the sky: a closed ring of points (the first repeated as the last) round an ellipse of the shape's major and minor axes at its angle. Where the minor axis or the angle is not known the ring is a circle of the major diameter, because no other shape is measured. The points are on the sky, so any projection can draw them.
インポート
import { deepSkyOutline } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic-shape
定義
function deepSkyOutline(centre: SkyPoint, shape: DeepSkyShape, points?: number): SkyPoint[] | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
centre | SkyPoint | The object's position. |
shape | DeepSkyShape | Its shape, from |
points (省略可) | number | How many points round it, at least 8 (default 48). |
戻り値
SkyPoint[] | undefined
The ring, or undefined where the shape has no size.
例
import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyOutline, deepSkyShape } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
const m31 = deepSkyObject("M31")!;
console.log(deepSkyOutline(m31, deepSkyShape(m31), 16)!.length);17出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。