ArcObjects Library Reference (DefenseSolutions)  

IMeasurementTool.ConstructByPointDistAngle Method

Computes properties of Geoline object using the FromPoint, Distance, and Angle.

ERROR: Syntax information about IMeasurementTool.ConstructByPointDistAngle may not be in D:\ArcGIS\DotNet\ESRI.ArcGIS.DefenseSolutions.dll

[C++]
HRESULT ConstructByPointDistAngle(
  IPoint* piFromPoint,
  double dDistance,
  double dDegreesCWFromNorth
);
[C++]

Parameters

piFromPoint [in]

  piFromPoint is a parameter of type IPoint

dDistance [in]   dDistance is a parameter of type double dDegreesCWFromNorth [in]   dDegreesCWFromNorth is a parameter of type double

Product Availability

Available with ArcGIS Engine and ArcGIS Desktop.

Remarks

The following VB snippet illustrates how to use the ConstructByPointDistAngle method to determine the end point of a Geoline.

Dim pStart As IPoint
Dim pEnd As IPoint
Dim dDist As Double
Dim dAzi As Double
Dim pMeasureTool As IMeasurementTool

Set pStart = New Point 'the point here is assumed to have coordinates and a spatial reference
Set pEnd = New Point
dDist = 750000 'the distance of the line in meters
dAzi = 35 'the azimuth of the line in degrees clockwise from north

Set pMeasureTool = New MeasurementTool
Set pMeasureTool.SpecialSpatialReference = pSpatRef
pMeasureTool.ConstructByPointDistAngle pStart, dDist, dAzi
pMeasureTool.SpecialGeolineType = cjmtkSGTGeodesic

Set pEnd = pMeasureTool.FromPoint

See Also

IMeasurementTool Interface