Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.