AGI STK VGT 11 Send comments on this topic.
LocateInSystem Method (IAgCrdnPoint)
See Also  Example
Epoch
Specify an epoch. The method may throw an exception if the epoch parameter specified cannot be converted to a currently selected date unit.
System
Specify a coordinate system.





Description

Locates the point's position in a specified coordinate system.

Syntax

[Visual Basic .NET]
Public Function LocateInSystem( _
   ByVal Epoch As System.Object, _
   ByVal System As IAgCrdnSystem _
) As IAgCrdnPointLocateInSystemResult

[C#]
public IAgCrdnPointLocateInSystemResult LocateInSystem(
System.Object Epoch,
IAgCrdnSystem System
);

[Managed C++]
public: IAgCrdnPointLocateInSystemResult^ LocateInSystem(
VARIANT Epoch,
IAgCrdnSystem ^ System
);

[Java]
public IAgCrdnPointLocateInSystemResult locateInSystem(
Variant Epoch,
IAgCrdnSystem System
);

[Unmanaged C++]
public: HRESULT LocateInSystem(
VARIANT Epoch,
IAgCrdnSystem * System,
IAgCrdnPointLocateInSystemResult ** ReturnValue
);

Parameters

Epoch
Specify an epoch. The method may throw an exception if the epoch parameter specified cannot be converted to a currently selected date unit.
System
Specify a coordinate system.

Example

Locates a point in the Earth's Fixed reference frame.
[C#] Copy Code
IAgCrdnPointLocateInSystemResult result = point.LocateInSystem(0
    provider.WellKnownSystems.Earth.Fixed); 
if (result.IsValid) 

    Console.WriteLine("The position of the point in Earth's Fixed reference frame: {0},{1},{2}"
        result.Position.X, result.Position.Y, result.Position.Z); 

 

Locates a point in the Earth's Fixed reference frame.
[Visual Basic .NET] Copy Code
Dim result As IAgCrdnPointLocateInSystemResult = point.LocateInSystem(0, provider.WellKnownSystems.Earth.Fixed)
If result.IsValid Then
    Console.WriteLine("The position of the point in Earth's Fixed reference frame: {0},{1},{2}", result.Position.X, result.Position.Y, result.Position.Z)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1