classOfElementsfunction
The class of an orbit straight from the two numbers every element set has, its mean motion (revolutions a day) and its eccentricity; null when they are not an orbit.
Import it
import { classOfElements } from "@johnmorrisdotca/chikyu-earth/catalogue";
Definition
function classOfElements(meanMotion: number, eccentricity: number): OrbitClass | null
Parameters
| Name | Type | Description |
|---|---|---|
meanMotion | number | Revolutions a day, above 0. |
eccentricity | number | 0 up to (not including) 1. |
Returns
OrbitClass | null
The class, or null.
Examples
import { classOfElements } from "@johnmorrisdotca/chikyu-earth/catalogue";
console.log(classOfElements(15.49, 0.0007), classOfElements(1.0027, 0.0002), classOfElements(0, 0));leo geo nullWhat it prints (run when this page was built)