Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added Planet type to planets module in @observerly/astrometry. #116

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 93 additions & 1 deletion src/planets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,98 @@

/*****************************************************************************************************************/

export {}
export type Planet = {
/**
*
*
* Some unique identifier for the planet.
*
*/
uid: string
/**
*
*
* The common, wsternised name of the planet.
*
*/
name: 'Mercury' | 'Venus' | 'Earth' | 'Mars' | 'Jupiter' | 'Saturn' | 'Uranus' | 'Neptune'
/**
*
*
* The "astrological" symbol for the planet.
*
*/
symbol: '☿' | '♀' | '♁' | '♂' | '♃' | '♄' | '♅' | '♆'
/**
*
*
* The planet's orbital period in tropical years.
*
*/
T: number
/**
*
*
* The planet's mass relative to Earth.
*
*/
m: number
/**
*
*
* The planet's radius relative to Earth.
*
*/
r: number
/**
*
*
* The planet's eccentricity.
*
*/
e: number
/**
*
*
* The planet's semi-major axis in AU.
*
*/
a: number
/**
*
*
* The planet's inclination in degrees.
*
*/
i: number
/**
*
*
* The planet's ecliptical longitude at epoch in degrees.
*
*/
ε: number
/**
*
*
* The planet's ecliptical longitude at perihelion in degrees.
*
*/
ϖ: number
/**
*
*
* The planet's ecliptical longitude of ascending node at epoch in degrees.
*
*/
Ω: number
/**
*
*
* Whether the planet is inferior.
*
*/
isInferior?: boolean
}

/*****************************************************************************************************************/
Loading