API (v2.0.0) - Giro3D
    Preparing search index...

    Function getLocalPosition

    • Returns the local position of the sun, given the zenith and azimuth.

      Parameters

      • params: { azimuth: number; distance?: number; point?: Vector3; zenith: number }
        • azimuth: number

          The azimuth of the sun, in degrees, in horizontal coordinates

        • Optionaldistance?: number

          The distance of the sun to the local point.

          1
          
        • Optionalpoint?: Vector3

          The local point.

          (0, 0, 0)
          
        • zenith: number

          The zenith of the sun, in degrees, in horizontal coordinates.

          Note: the value is clamped to the [0°, 90°] range.

      • Optionaltarget: Vector3

      Returns Vector3