LineSegment QML Type

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

Import Statement: import Esri.ArcGISRuntime
Since: Esri.ArcGISRuntime 100.0




Detailed Description

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

The SpatialReference of a LineSegment can be unspecified. If subsequently added to a Part, it will take on the SpatialReference of that SegmentCollection.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Property Documentation

[default] endPoint : Point

The end point of this LineSegment.

[default] spatialReference : SpatialReference

[default] startPoint : Point

The start point of this LineSegment.

Method Documentation

LineSegment createLineAtAngleFromStartPoint(Point startPoint, double angleRadians, double length)

Creates a line segment of the specified length and angle from a given start point.

  • startPoint - The start point of the line segment.
  • angleRadians - The angle of the line relative to the X axis. Units are radians.
  • length - The length of the line.

Use this method to create a line segment. The represents a straight line between two points. The spatial reference 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.

Returns Enums.ErrorTypeCommonInvalidArgument if the SpatialReference of both points supplied are non-null and differ.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.