AGI AgAsHpopPlugin 6 Send comments on this topic.
SunPosition Method (IAgAsLightReflectionResultEval)
See Also 
SunPosType
Frame
X
Y
Z
Windows








Description

Position of the sun in meters wrt the current satellite position, in the requested frame, computed in the requested manner.

Syntax

[Visual Basic .NET]
Public Sub SunPosition( _
   ByVal SunPosType As AgEUtSunPosType, _
   ByVal Frame As AgEUtFrame, _
   ByRef X As Double, _
   ByRef Y As Double, _
   ByRef Z As Double _
) 

[C#]
public void SunPosition(
AgEUtSunPosType SunPosType,
AgEUtFrame Frame,
ref double X,
ref double Y,
ref double Z
);

[Managed C++]
public: void SunPosition(
AgEUtSunPosType SunPosType,
AgEUtFrame Frame,
double ^ X,
double ^ Y,
double ^ Z
);

[Unmanaged C++]
public: HRESULT SunPosition(
AgEUtSunPosType SunPosType,
AgEUtFrame Frame,
double * X,
double * Y,
double * Z
);

[VBScript]
SunPosition not supported by VBScript (VBScript does not support ByRef arguments in COM)

[Perl]
$objectReference->SunPosition(
$SunPosType, # type AgEUtSunPosType (scalar integer)
$Frame, # type AgEUtFrame (scalar integer)
$X, # type Variant (VT_R8 | VT_BYREF)
$Y, # type Variant (VT_R8 | VT_BYREF)
$Z# type Variant (VT_R8 | VT_BYREF)
);

Parameters

SunPosType
Member Value Description
eUtSunPosTypeApparentToTrueCB 0  
eUtSunPosTypeApparent 1  
eUtSunPosTypeTrue 2  
eUtSunPosTypeSRP 3  
Frame
Member Value Description
eUtFrameInertial 0  
eUtFrameFixed 1  
eUtFrameLVLH 2  
eUtFrameNTC 3  
eUtFrameICRF 4  
eUtFrameJ2000 5  
X
Y
Z

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

ODTK 6.5