This document is archived and information here might be outdated.  Recommended version.


IRay.QueryOrigin Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IR > IRay Interface > IRay.QueryOrigin Method
ArcGIS Developer Help

IRay.QueryOrigin Method

Sets a point equal to the ray's origin.

[Visual Basic .NET]
Public Sub QueryOrigin ( _
    ByVal vectorOrigin As IPoint _
)
[C#]
public void QueryOrigin (
    IPoint vectorOrigin
);
[C++]
HRESULT QueryOrigin(
  IPoint* vectorOrigin
);
[C++]
Parameters
vectorOrigin 

vectorOrigin is a parameter of type IPoint*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns the Origin of the Ray into the input Point.

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

Ray QueryOrigin Example

See Also

IRay Interface