Home Reference Source

References

summary
public

C Camera

A wrapper for Three.js camera and controls.

public

C Ephem

A class representing Kepler ephemerides.

public

A class for fetching orbital elements of natural satellites in our solar system.

public

This class encapsulates the data and necessary methods for operating with look up ephemeris data.

public

An efficient way to render many objects in space with Kepler orbits.

public

C Orbit

A class that builds a visual representation of a Kepler orbit.

public

This class simulates an object that spins according to provided rotational parameters.

public
public

The main entrypoint of a visualization.

public

C Skybox

A class that adds a skybox (technically a skysphere) to a visualization.

public

An object that can be added to a visualization.

public

Simulates a planet or other object as a perfect sphere.

public

C Stars

Builds a starry background that is accurate for the Earth's position in space.

public

Simulates a static particle field in whichever base reference the simulation is in.

public

F eclipticToEquatorial_Cartesian(x: *, y: *, z: *, tilt: *): undefined[]

public

F equatorialToEcliptic_Cartesian(x: *, y: *, z: *, tilt: *): undefined[]

public

Get Earth's obliquity and nutation at a given date.

public

Get Earth's obliquity at a given date.

public

F sphericalToCartesian(ra: *, dec: *, dist: *): undefined[]

public

F interpolate(data: Array, xValue: Number, sampleRowMin: Number, sampleRowMax: Number, xIndex: Number, yIndex: Number): Number

Interpolates the given 2D array of data using a Lagrange Polynomial interpolation.

public

F getOrbitType(ephem: *): OrbitType

Get the type of orbit.

public

Get the number of units per AU.

public

F rescale(args: ...*): *

public

F rescaleArray(XYZ: *): undefined[]

public

F rescaleNumber(x: *): *

public

F rescalePos(pos: *): *

public

F rescaleVector(vec: *): *

public

F rescaleXYZ(X: *, Y: *, Z: *): undefined[]

public

F setScaleFactor(val: *)

Set the number of units per AU.

public

F auToKm(au: *): *

public

F decimalToSexagesimalDec(decimal: *, isObserverBelowEquator: boolean): undefined[]

public
public

F deg(val: *): *

public

F hoursToDeg(val: *): *

public

F kmToAu(km: *): *

public

F rad(val: *): *

public

F sexagesimalToDecimalDec(decDeg: *, decMin: *, decSec: *, isObserverBelowEquator: boolean): *

public

F sexagesimalToDecimalRa(raHour: *, raMin: *, raSec: *): *

public

F binarySearch(data: Array, value: *, comparer: Function): number

Performs a standard binary search on an array of values returning the index of the found item or the twos complement negative of the closest value if the exact value isn't found. For example for array: [10, 20, 30]

  • Searching for a value of 20 would return an index of 1
  • Searching for a value of 12 would return a value of -2 (taking the two's complement back '~' give you 1)
public
public

F getFullTextureUrl(template: String, basePath: String): *

Returns the complete URL to a texture given a basepath and a template url.

public

F getFullUrl(template: String, basePath: String): *

Returns the complete URL to a texture given a basepath and a template url.

public

F getThreeJsTexture(template: *, basePath: *): *

public

V GM: {"SUN": number, "MERCURY": number, "VENUS": number, "EARTH_MOON": number, "MARS": number, "JUPITER": number, "SATURN": number, "URANUS": number, "NEPTUNE": number, "PLUTO_CHARON": number}

Standard gravitational parameter for objects orbiting these bodies.

public

V EphemPresets: {"MERCURY": *, "VENUS": *, "EARTH": *, "MOON": *, "MARS": *, "JUPITER": *, "SATURN": *, "URANUS": *, "NEPTUNE": *, "PLUTO": *}

A dictionary containing ephemerides of planets and other well-known objects.

public

V OrbitType: *

Enum of orbital types.

public

V SkyboxPresets: {"ESO_GIGAGALAXY": *, "ESO_LITE": *, "NASA_TYCHO": *}

Preset skybox objects that you can use to add a skybox to your visualization.

public

V SpaceObjectPresets: {"SUN": *, "MERCURY": *, "VENUS": *, "EARTH": *, "MOON": *, "MARS": *, "JUPITER": *, "SATURN": *, "URANUS": *, "NEPTUNE": *, "PLUTO": *}

Useful presets for creating SpaceObjects.

public
public
public
public
public
public
public
public
public
public
public

V THREE: *