Click or drag to resize

GeometryEngineCreatePointAlong Method

Returns the point at a given distance along a line.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public static MapPoint CreatePointAlong(
	Polyline polyline,
	double distance
)

Parameters

polyline
Type: Esri.ArcGISRuntime.GeometryPolyline
The polyline from which point is created.
distance
Type: SystemDouble
The distance along the polyline in the units of the polyline where point is created.

Return Value

Type: MapPoint
The point at the given distance along the line.
Remarks
If distance is less than or equal to zero, the point returned is coincident with the start of the line. If distance is greater than or equal to the line's length, the point returned is coincident with the end of the line. If the line has multiple parts, and the distance falls exactly on a boundary between two parts, the returned point will be coincident with either the end of one part or the start of the next which is undetermined.
See Also