Saxonberg Server API
    Preparing search index...
    Index

    Constructors

    Properties

    CAMPUS_LATITUDE: 42 = CAMPUS_LATITUDE

    Campus latitude (°N). Single-region v1; per-zone latitude is future work.

    CAMPUS_LONGITUDE: 0 = CAMPUS_LONGITUDE

    Campus longitude (°E). Reserved for future time-zone work.

    Methods

    • Altitude in degrees of any body from its declination and hour angle: sin(alt) = sin(lat)·sin(δ) + cos(lat)·cos(δ)·cos(H).

      Parameters

      • latitudeDegrees: number
      • decDegrees: number
      • hourAngleDegrees: number

      Returns number

    • Azimuth in degrees (from north, clockwise) of any body from its declination and hour angle: cos(Az) = (sin(δ) − sin(lat)·sin(alt)) / (cos(lat)·cos(alt)) with the western half taken when the hour angle is positive.

      Parameters

      • latitudeDegrees: number
      • decDegrees: number
      • hourAngleDegrees: number

      Returns number

    • First game-time strictly after t at which sunrise (or sunset, per which) occurs. Walks forward day by day — declination drifts so the event time changes daily — skipping polar days/nights, up to a full year. Returns null if no such event occurs within a year.

      Parameters

      • profile: CelestialProfile
      • latitudeDegrees: number
      • t: number
      • which: "sunrise" | "sunset"

      Returns number | null

    • The hour-angle magnitude at sunrise/sunset (altitude 0): cos(H0) = −tan(lat)·tan(δ) Returns 'polar-day' when the sun never sets, 'polar-night' when it never rises, otherwise the H0 magnitude in degrees.

      Parameters

      Returns number | "polar-day" | "polar-night"