Represents a straight line between a start and end Point. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- endPoint : Point
- spatialReference : SpatialReference
- startPoint : Point
Methods
- LineSegment createLineAtAngleFromStartPoint(Point startPoint, double angleRadians, double length)
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.
Type | Default Property |
---|---|
SpatialReference | spatialReference |
Point | startPoint |
Point | endPoint |
Property Documentation
[default] endPoint : Point |
The end point of this LineSegment.
[default] spatialReference : SpatialReference |
The SpatialReference of this LineSegment.
[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.