IFClite TypeScript API
    Preparing search index...

    Function sunPosition

    @ifc-lite/solar — solar position, sunrise/sunset and 3D sun-path geometry.

    Pure, dependency-free math: given a site latitude/longitude and an instant, compute where the sun is, and generate the sampled curves for a 3D sun-path dome (day paths, hourly analemmas, graticule). Renderer-agnostic — outputs are plain angles and ENU unit vectors.

    • Local horizontal position of the Sun at an absolute instant for a site.

      Parameters

      • date: Date

        Absolute instant (interpreted as UTC via getTime()).

      • latitude: number

        Site latitude in degrees (north positive).

      • longitude: number

        Site longitude in degrees (east positive).

      Returns SunPosition