Skip To Content ArcGIS for Developers Sign In Dashboard

LineSegment Class

class Esri::ArcGISRuntime::LineSegment

Represents a straight line between a start and end point. More...

Header: #include <LineSegment>
Since: Esri::ArcGISRuntime 100.0
Inherits: Esri::ArcGISRuntime::Segment

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

LineSegment(Esri::ArcGISRuntime::LineSegment &&other)
LineSegment(const Esri::ArcGISRuntime::LineSegment &other)
LineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd, const Esri::ArcGISRuntime::SpatialReference &spatialReference)
LineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd)
LineSegment(double xStart, double yStart, double xEnd, double yEnd, const Esri::ArcGISRuntime::SpatialReference &spatialReference)
LineSegment(double xStart, double yStart, double xEnd, double yEnd)
LineSegment(const Esri::ArcGISRuntime::Point &startPoint, const Esri::ArcGISRuntime::Point &endPoint, const Esri::ArcGISRuntime::SpatialReference &spatialReference)
LineSegment(const Esri::ArcGISRuntime::Point &startPoint, const Esri::ArcGISRuntime::Point &endPoint)
LineSegment()
Esri::ArcGISRuntime::LineSegment &operator=(Esri::ArcGISRuntime::LineSegment &&other)
Esri::ArcGISRuntime::LineSegment &operator=(const Esri::ArcGISRuntime::LineSegment &other)
~LineSegment()

Static Public Members

Esri::ArcGISRuntime::LineSegment createLineAtAngleFromStartPoint(const Esri::ArcGISRuntime::Point &startPoint, double angleRadians, double length)

Detailed Description

LineSegments are used to represent the edges of Polygons and Polylines.

The SpatialReference of a LineSegment will be unset if one is not set in its constructor. If subsequently added to a Part, it will take on the SpatialReference of that SegmentCollection.

LineSegment is immutable. Create new instances by using the constructors and factory methods, instead of changing the properties of an existing LineSegment.

Member Function Documentation

LineSegment::LineSegment(Esri::ArcGISRuntime::LineSegment &&other)

Move constructor from other LineSegment.

LineSegment::LineSegment(const Esri::ArcGISRuntime::LineSegment &other)

Copy constructor from other LineSegment.

LineSegment::LineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd, const Esri::ArcGISRuntime::SpatialReference &spatialReference)

Constructor that takes an xStart, yStart, zStart, xEnd, yEnd, zEnd and spatialReference.

LineSegment::LineSegment(double xStart, double yStart, double zStart, double xEnd, double yEnd, double zEnd)

Constructor that takes an xStart, yStart, zStart, xEnd, yEnd and zEnd.

LineSegment::LineSegment(double xStart, double yStart, double xEnd, double yEnd, const Esri::ArcGISRuntime::SpatialReference &spatialReference)

Constructor that takes an xStart, yStart, xEnd, yEnd and spatialReference.

LineSegment::LineSegment(double xStart, double yStart, double xEnd, double yEnd)

Constructor that takes an xStart, yStart, xEnd, and yEnd.

LineSegment::LineSegment(const Esri::ArcGISRuntime::Point &startPoint, const Esri::ArcGISRuntime::Point &endPoint, const Esri::ArcGISRuntime::SpatialReference &spatialReference)

Constructor that takes a startPoint, endPoint and spatialReference.

LineSegment::LineSegment(const Esri::ArcGISRuntime::Point &startPoint, const Esri::ArcGISRuntime::Point &endPoint)

Constructor that takes a startPoint and an endPoint.

LineSegment::LineSegment()

Default constructor.

A default constructed LineSegment should not be used. This constructor is provided for convenience only.

Esri::ArcGISRuntime::LineSegment &LineSegment::operator=(Esri::ArcGISRuntime::LineSegment &&other)

Move operator from other LineSegment.

Esri::ArcGISRuntime::LineSegment &LineSegment::operator=(const Esri::ArcGISRuntime::LineSegment &other)

Assignment operator from other LineSegment.

LineSegment::~LineSegment()

Destructor.

[static] Esri::ArcGISRuntime::LineSegment LineSegment::createLineAtAngleFromStartPoint(const Esri::ArcGISRuntime::Point &startPoint, double angleRadians, double length)

Factory method to create a LineSegment from a startPoint, angleRadians, and a length.


Feedback on this topic?