Constructor LineSegment
LineSegment(MapPoint, MapPoint)
Initializes a new instance of the LineSegment class based on two points.
Declaration
public LineSegment(MapPoint startPoint, MapPoint endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| MapPoint | startPoint | The start point. |
| MapPoint | endPoint | The end point. |
Remarks
Use this constructor to create a line segment representing a straight line between two points.
If both points have a SpatialReference set, they must be equal.
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 |
LineSegment(MapPoint, MapPoint, SpatialReference)
Initializes a new instance of the LineSegment class based on two points and a spatial reference.
Declaration
public LineSegment(MapPoint startPoint, MapPoint endPoint, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| MapPoint | startPoint | The start point. |
| MapPoint | endPoint | The end point. |
| SpatialReference | spatialReference | A spatial reference |
Remarks
Use this constructor to create a line segment representing a straight line between two points.
The spatialReference parameter is used if the points have a null
SpatialReference. If more than one spatial reference is supplied they must
all be equal.
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 |
LineSegment(Double, Double, Double, Double)
Initializes a new instance of the LineSegment class on coordinates
Declaration
public LineSegment(double xStart, double yStart, double xEnd, double yEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | xStart | The X coordinate of start point. |
| Double | yStart | The Y coordinate of start point. |
| Double | xEnd | The X coordinate of end point. |
| Double | yEnd | The Y coordinate of end point. |
Remarks
Use this constructor to create a line segment representing a straight line between two points.
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 |
LineSegment(Double, Double, Double, Double, SpatialReference)
Initializes a new instance of the LineSegment class based on coordinates.
Declaration
public LineSegment(double xStart, double yStart, double xEnd, double yEnd, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | xStart | The X coordinate of start point. |
| Double | yStart | The Y coordinate of start point. |
| Double | xEnd | The X coordinate of end point. |
| Double | yEnd | The Y coordinate of end point. |
| SpatialReference | spatialReference | A spatial reference |
Remarks
Use this constructor to create a line segment representing a straight line between two points.
The spatialReference parameter is used if the point's have a null
SpatialReference. If more than one spatial reference is supplied they must
all be equal.
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 |
LineSegment(Double, Double, Double, Double, Double, Double)
Initializes a new instance of the LineSegment class based on 3D coordinates
Declaration
public LineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | xStart | The X coordinate of start point. |
| Double | yStart | The Y coordinate of start point. |
| Double | zStart | The Z coordinate of start point. |
| Double | xEnd | The X coordinate of end point. |
| Double | yEnd | The Y coordinate of end point. |
| Double | zEnd | The Z coordinate of end point. |
Remarks
Use this constructor to create a line segment representing a straight line between two points.
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 |
LineSegment(Double, Double, Double, Double, Double, Double, SpatialReference)
Initializes a new instance of the LineSegment class based on 3D coordinates and a spatial reference.
Declaration
public LineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | xStart | The X coordinate of start point. |
| Double | yStart | The Y coordinate of start point. |
| Double | zStart | The Z coordinate of start point. |
| Double | xEnd | The X coordinate of end point. |
| Double | yEnd | The Y coordinate of end point. |
| Double | zEnd | The Z coordinate of end point. |
| SpatialReference | spatialReference | A spatial reference |
Remarks
Use this constructor to create a line segment representing a straight line between two points.
The spatialReference parameter is used if the point's have a null
SpatialReference. If more than one spatial reference is supplied they must
all be equal.
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 |