User Tools

Site Tools


api:dk11:delphi:gisutils.tgis_utils.gissunposition_tgis_point_tdatetime_double_double_double

Table of Contents

TGIS_Utils.GisSunPosition(TGIS_Point; TDateTime; Double; Double; Double) method

DK11 for Delphi | GisUtils.TGIS_Utils.GisSunPosition | Overloads | Methods | Properties

Calculate sun's position based on time, date, and location on Earth

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  class procedure GisSunPosition(
    const _ptg : TGIS_Point;
    const _local_time : TDateTime;
    const _utc_offset : Double;
    var _altitude : Double;
    var _azimuth : Double
  ); overload;
// C++ Builder
public:
  __classmethod void GisSunPosition(
    TGIS_Point* const _ptg,
    TDateTime* const _local_time,
    const double _utc_offset,
    double &_altitude,
    double &_azimuth
  ) /* overload */;

Parameters

Name Type Description
_ptg TGIS_Point observer's location in geographic coordinate system expressed in radians
_local_time TDateTime observer's local time
_utc_offset Double time difference in hours between UTC and local time for a particular place and date; Daylight Saving Time must be taken into account.
_altitude Double angular height in radians of the sun in the sky measured from the horizontal; values from 0 at sunrise and sunset to 90 at solar noon (also known as an elvation angle)
_azimuth Double angle in radians in the horizontal plane measured clockwise from north to the horizontal projection of the sun's rays; values from 0 to 2*Pi
2020/05/07 01:10

Page Tools