本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス · メシエ天体の空での大きさと向き、その輪郭

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

引数

名前型説明
centreSkyPoint

The object's position.

shapeDeepSkyShape

Its shape, from deepSkyShape.

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。