Home > All Other Interfaces > IPosition > AimTo
Returns an IPosition6 object that represents the same position as the caller’s coordinates and the angles that are directed toward the given coordinates.
JavaScript |
|
AimTo( Position) |
C# |
|
IPosition6 AimTo( IPosition6 Position) |
C++ |
|
|
Parameters
Position
An IPosition6 representing a position on the terrain.
Return Value
pVal
An IPosition6 representing the same position as the caller’s coordinates and the angles that are directed toward the given coordinates.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.