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


IRay.QueryVector 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.QueryVector Method
ArcGIS Developer Help

IRay.QueryVector Method

Sets a vector equal to a unit vector with the same direction as the ray.

[Visual Basic .NET]
Public Sub QueryVector ( _
    ByVal directionVector As IVector3D _
)
[C#]
public void QueryVector (
    IVector3D directionVector
);
[C++]
HRESULT QueryVector(
  IVector3D* directionVector
);
[C++]
Parameters
directionVector 

directionVector is a parameter of type IVector3D*

Product Availability

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

Description

Returns the Vector3D of the Ray.  The Vector3D determines the direction the Ray extends from its Origin.  The Vector of a Ray is always Normalized to a unit vector.

Remarks

 

Ray QueryVector Example

See Also

IRay Interface