AGI STK VGT 11Send comments on this topic.
LocateInSystem Method (IAgCrdnPoint)
See Also
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.
Windows






Windows & Linux

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 
[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 ** ppRetVal
);

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.

See Also

Example

Locates a point in the Earth's Fixed reference frame.
[C#]
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]
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
© 2019 Analytical Graphics, Inc. All Rights Reserved.