ArcGIS Pro 2.9 API Reference Guide
ConstructGeodeticLineFromDistance Method (IGeometryEngine)
Example 

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : ConstructGeodeticLineFromDistance Method
The type of geodetic curve to be created.
The from point.
The length of the geodetic line to be created.
The azimuth (in radians) of the geodetic line to be created. Measured clockwise from the north.
The linear unit of the length. Also the linear unit of the densifyParameter if the densifyMode is DensifyByLength. If this is null, the units are assumed to be meters.
The densification mode.
The densification parameter.
Constructs a geodetic line with the specified length and azimuth.
Syntax

Parameters

curveType
The type of geodetic curve to be created.
fromPoint
The from point.
length
The length of the geodetic line to be created.
azimuth
The azimuth (in radians) of the geodetic line to be created. Measured clockwise from the north.
linearUnit
The linear unit of the length. Also the linear unit of the densifyParameter if the densifyMode is DensifyByLength. If this is null, the units are assumed to be meters.
densifyMode
The densification mode.
densifyParameter
The densification parameter.

Return Value

Returns the created geodetic line.
Exceptions
ExceptionDescription
fromPoint is null.
fromPoint cannot be empty.
densifyParameter cannot be NaN.
length cannot be NaN.
azimuth cannot be NaN.
esriCurveDensifyMethod.ByAngle is not supported.
An unspecified error occurred..
Remarks
If the densifyMode is DensifyByLength, then the densifyParameter specifies the maximum segment length.

If the densifyMode is DensifyByDeviation, then it is the maximum distance from the true geodetic line to the densified output.

Example
var sr = SpatialReferenceBuilder.CreateSpatialReference(4326);
var mapPoint = MapPointBuilderEx.CreateMapPoint(15, 60, sr);

// calculate
var polylineGeodetic = GeometryEngine.Instance.ConstructGeodeticLineFromDistance(GeodeticCurveType.Loxodrome, mapPoint, 5000000, 45, null, esriCurveDensifyMethod.ByLength, 300000);
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members