本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス

ある日付に、ある天体にいちばん近い天体を、空の見かけの角度か宇宙での距離でさがします。2つの天体がいちばん近づく時刻も: nearest、within、closestApproach、conjunctions

import { … } from "@johnmorrisdotca/wakusei-planets/nearest";

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
Approach型The closest two bodies come in a span: the moment of the minimum and the separation then.
ApproachOptions型Where a search looks, and what counts as close.
closestApproach関数When two bodies come closest in a span, and how close: the span is scanned in coarse steps (the fastest body goes round forty times in the step, at most two days), then the smallest minimum is narrowed to about a second of time by golden-section search.
ConjunctionOptions型The options of conjunctions.
conjunctions関数The close approaches of every pair of bodies in a span, soonest first: each pair's separation is scanned in coarse steps (the fastest body goes round forty times in the step, at most two days), and every minimum inside the span that is within within is narrowed to about a second of time.
distance関数The distance between two bodies on a date: the straight line between their centres at that instant, in kilometres and astronomical units, with no light time.
Distance型The distance between two bodies at one instant: their centres, in the Sun's frame, with no light time.
DistanceAt型The least or the greatest distance of a pair over a span, and when.
distanceRange関数The least and the greatest distance between two bodies over a span, each with its moment: the span is scanned in coarse steps (as closestApproach does) and each turning point is narrowed to about a second of time by golden-section search, the greatest on the negated distance.
DistanceRange型Where a pair is nearest and farthest over a span.
nearest関数The bodies nearest to a body on a date, nearest first: by the angle between them in the sky of an observer, or by the distance between them in space.
NearestKind型What kind of body: the Sun is "star".
NearestOptions型The options of nearest, within, closestApproach and conjunctions that mean the same in each.
SkyNeighbour型A body near the target in the sky: its angle from the target in degrees (0 to 180) and how far that angle may be off, in arc-seconds.
SpaceNeighbour型A body near the target in space: the distance between their centres, and how far that may be off.
Viewpoint型Where the sky is seen from: a body's centre ("mars" for the sky of Mars), or a place on the Earth, whose parallax counts (the Moon is up to a degree different from there than from the Earth's centre).
within関数Every body inside a radius of a body on a date, nearest first: nearest with no limit on how many.

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.24.0 のソースから作成しました。

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