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


IHitTest3D.HitTestCone Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IH > IHitTest3D Interface > IHitTest3D.HitTestCone Method
ArcGIS Developer Help

IHitTest3D.HitTestCone Method

Locates a part of a geometry closest to a query ray.

[Visual Basic .NET]
Public Function HitTestCone ( _
    ByVal pQueryRay As IRay, _
    ByVal minAngle As Double, _
    ByVal geometryPart As esriGeometryHitPartType, _
    ByVal pHitPoint As IPoint, _
    ByRef pHitDistance As Double, _
    ByRef pHitPartIndex As Integer, _
    ByRef pHitSegmentIndex As Integer _
) As Boolean
[C#]
public bool HitTestCone (
    IRay pQueryRay,
    double minAngle,
    esriGeometryHitPartType geometryPart,
    IPoint pHitPoint,
    ref double pHitDistance,
    ref int pHitPartIndex,
    ref int pHitSegmentIndex
);
[C++]
HRESULT HitTestCone(
  IRay* pQueryRay,
  double minAngle,
  esriGeometryHitPartType geometryPart,
  IPoint* pHitPoint,
  System.Double* pHitDistance,
  System.Int32* pHitPartIndex,
  System.Int32* pHitSegmentIndex
);
[C++]
Parameters
pQueryRay 

pQueryRay is a parameter of type IRay* minAngle
minAngle is a parameter of type double geometryPart
geometryPart is a parameter of type esriGeometryHitPartType pHitPoint
pHitPoint is a parameter of type IPoint* pHitDistance [in, out]
pHitDistance is a parameter of type double* pHitPartIndex [in, out]
pHitPartIndex is a parameter of type long* pHitSegmentIndex [in, out]
pHitSegmentIndex is a parameter of type long*

Product Availability

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

See Also

IHitTest3D Interface