API (v2.0.0) - Giro3D
    Preparing search index...
    sun: {
        getDirection: (date?: Date) => Vector3;
        getGeographicPosition: (date?: Date, target?: Coordinates) => Coordinates;
        getLocalFrameDirection: (observer: Coordinates, date?: Date) => Vector3;
        getLocalPosition: (
            params: {
                azimuth: number;
                distance?: number;
                point?: Vector3;
                zenith: number;
            },
            target?: Vector3,
        ) => Vector3;
    }

    Utility functions related to the position of the sun.

    Type Declaration

    • getDirection: (date?: Date) => Vector3
    • getGeographicPosition: (date?: Date, target?: Coordinates) => Coordinates
    • getLocalFrameDirection: (observer: Coordinates, date?: Date) => Vector3
    • getLocalPosition: (
          params: {
              azimuth: number;
              distance?: number;
              point?: Vector3;
              zenith: number;
          },
          target?: Vector3,
      ) => Vector3