User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_utils.gissunposition_2_itgis_point_tdatetime_double_double_double

Table of Contents

ITGIS_Utils.GisSunPosition_2 method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Utils.GisSunPosition_2 | Methods | Properties

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

Available also on: Delphi | .NET | Java.

Syntax

// C#
public void GisSunPosition_2(
  ITGIS_Point _ptg,
  TDateTime _local_time,
  double _utc_offset,
  ref double _altitude,
  ref double _azimuth
);
' VisualBasic
Public Sub GisSunPosition_2(
  ByVal _ptg As ITGIS_Point,
  ByVal _local_time As TDateTime,
  ByVal _utc_offset As Double,
  ByRef _altitude As Double,
  ByRef _azimuth As Double
)
// Oxygene
public
  procedure GisSunPosition_2(
    _ptg : ITGIS_Point;
    _local_time : TDateTime;
    _utc_offset : Double;
    var _altitude : Double;
    var _azimuth : Double
  );

Parameters

Name Type Description
_ptg ITGIS_Point observer's location in geographic coordinate system expressed in radians
_local_time TDateTime observer's local time
_utc_offset double
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
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
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:05

Page Tools