spacekit
    Preparing search index...

    Class Orbit

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

    const orbit = new Spacekit.Orbit({
    ephem: new Spacekit.Ephem({...}),
    options: {
    color: 0xFFFFFF,
    eclipticLineColor: 0xCCCCCC,
    },
    });
    Index
    • Parameters

      • ephem: Ephem | EphemerisTable

        The ephemeris that define this orbit.

      • options: OrbitOptions
        • color

          The color of the orbital ellipse.

        • eclipticLineColor

          The color of lines drawn

        • orbitPathSettings

          settings for the path

        • orbitPathSettings.leadDurationYears

          orbit path lead time in years

        • orbitPathSettings.trailDurationYears

          orbit path trail time in years

        • orbitPathSettings.numberSamplePoints

          number of points to use when drawing the orbit line. Only applicable for non-elliptical and ephemeris table orbits. perpendicular to the ecliptic in order to illustrate depth (defaults to 0x333333).

      Returns Orbit

    • Get the color of this orbit.

      Returns number

      The hexadecimal color of the orbital ellipse.

    • A geometry containing line segments that run between the orbit ellipse and the ecliptic plane of the solar system. This is a useful visual effect that makes it easy to tell when an orbit goes below or above the ecliptic plane.

      Returns LineSegments

      A geometry with many line segments.

    • Calculates, caches, and returns the orbit state for this orbit around this time

      Parameters

      • Optionaljd: number

        center time of the orbit (only used for ephemeris table ephemeris)

      • forceCompute: boolean = false

        forces the recomputing of the orbit on this call

      Returns Line

    • Get heliocentric position of object at a given JD.

      Parameters

      • jd: number

        Date value in JD.

      • debug: boolean = false

        Set true for debug output.

      Returns Coordinate3d

      [X, Y, Z] coordinates

    • Parameters

      • jd: number
      • debug: boolean = false

      Returns Coordinate3d

    • Parameters

      • jd: number
      • debug: boolean = false

      Returns Coordinate3d

    • Parameters

      • jd: number
      • debug: boolean = false

      Returns Coordinate3d

    • Parameters

      • jd: number
      • debug: boolean = false

      Returns Coordinate3d

    • Parameters

      • jd: number
      • debug: boolean = false

      Returns Coordinate3d

    • Get the visibility of this orbit.

      Returns boolean

      Whether the orbital ellipse is visible. Note that although the ellipse may not be visible, it is still present in the underlying Scene and Simultation.

    • Returns whether the requested epoch is within the current orbit's definition. Used only for ephemeris tables.

      Parameters

      • jd: number

      Returns boolean

      true if it is within the orbit span, false if not

    • Parameters

      • hexVal: number

        The hexadecimal color of the orbital ellipse.

      Returns void

    • Change the visibility of this orbit.

      Parameters

      • val: boolean

        Whether to show the orbital ellipse.

      Returns void

    • Given true anomaly and heliocentric distance, returns the scaled heliocentric coordinates (X, Y, Z)

      Parameters

      • v: number

        True anomaly

      • r: number

        Heliocentric distance

      Returns Coordinate3d

      Heliocentric coordinates