Method CreateLineAtAngleFromStartPoint
CreateLineAtAngleFromStartPoint(MapPoint, Double, Double)
Creates a line segment of the specified length and angle from a given start point.
Declaration
public static LineSegment CreateLineAtAngleFromStartPoint(MapPoint startPoint, double angleRadians, double length)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | startPoint | The start point of the line segment. |
System.Double | angleRadians | The angle of the line relative to the X axis. Units are radians. |
System.Double | length | The length of the line. |
Returns
Type | Description |
---|---|
LineSegment | The new LineSegment |
Remarks
Use this method to create a line segment representing a straight line between two points. The SpatialReference of the point is used to determine the segment's spatial reference. The angle is specified in radians relative to the X axis. The length is in the units of the spatial reference.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |