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. |
Double | angleRadians | The angle of the line relative to the X axis. Units are radians. |
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 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |