LineSegment QML Type
Represents a straight line between a start and end Point. More...
Import Statement: | import Esri.ArcGISRuntime 100.10 |
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) |
A static method to create a LineSegment from a startPoint, angleRadians and a length.
This method can only be accessed via the Factory object now since the 100.9 release.
//LineSegment.createLineAtAngleFromStartPoint(...); // old code
Factory.LineSegment.createLineAtAngleFromStartPoint(...); // replacement code