|
ArcGIS Runtime SDK for iOS
100.9
|
A line segment.
Instances of this class represents a line segment. A line segment is a pair of start and end points.
Instance Methods | |
| (instancetype) | - initWithStartPoint:angle:length: |
| (instancetype) | - initWithStartPoint:endPoint: |
| (instancetype) | - initWithStartPoint:endPoint:spatialReference: |
| (instancetype) | - initWithXStart:yStart:xEnd:yEnd: |
| (instancetype) | - initWithXStart:yStart:xEnd:yEnd:spatialReference: |
| (instancetype) | - initWithXStart:yStart:zStart:xEnd:yEnd:zEnd: |
| (instancetype) | - initWithXStart:yStart:zStart:xEnd:yEnd:zEnd:spatialReference: |
| (BOOL) | - isEqualToSegment: |
Class Methods | |
| (instancetype) | + lineSegmentWithStartPoint:angle:length: |
| (instancetype) | + lineSegmentWithStartPoint:endPoint: |
| (instancetype) | + lineSegmentWithStartPoint:endPoint:spatialReference: |
| (instancetype) | + lineSegmentWithXStart:yStart:xEnd:yEnd: |
| (instancetype) | + lineSegmentWithXStart:yStart:xEnd:yEnd:spatialReference: |
| (instancetype) | + lineSegmentWithXStart:yStart:zStart:xEnd:yEnd:zEnd: |
| (instancetype) | + lineSegmentWithXStart:yStart:zStart:xEnd:yEnd:zEnd:spatialReference: |
Properties | |
| BOOL | closed |
| AGSPoint * | endPoint |
| AGSSpatialReference * | spatialReference |
| AGSPoint * | startPoint |
| - (instancetype) initWithStartPoint: | (AGSPoint *) | startPoint | |
| angle: | (double) | angle | |
| length: | (double) | length | |
Initializes a line segment with the provided start point, angle and length.
| startPoint | The start coordinate along x-axis |
| angle | The angle in radians |
| length | The length in the unit of start point's spatial reference |
Initializes a line segment with the provided start and end points.
| startPoint | The start point |
| endPoint | The end point |
| - (instancetype) initWithStartPoint: | (AGSPoint *) | startPoint | |
| endPoint: | (AGSPoint *) | endPoint | |
| spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Initializes a line segment with the provided spatial reference, start and end points.
| startPoint | The start point |
| endPoint | The end point |
| spatialReference | The spatial reference for the line segment to be constructed |
| - (instancetype) initWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
Initializes a line segment with the provided coordinate values.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| - (instancetype) initWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
| spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Initializes a line segment with the provided coordinate values and spatial reference.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| spatialReference | The spatial reference for the line segment to be constructed |
| - (instancetype) initWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| zStart: | (double) | zStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
| zEnd: | (double) | zEnd | |
Initializes a line segment with the provided coordinate values.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| zStart | The start coordinate along z-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| zEnd | The end coordinate along z-axis |
| - (instancetype) initWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| zStart: | (double) | zStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
| zEnd: | (double) | zEnd | |
| spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Initializes a line segment with the provided coordinate values and spatial reference.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| zStart | The start coordinate along z-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| zEnd | The end coordinate along z-axis |
| spatialReference | The spatial reference for the line segment to be constructed |
| - (BOOL) isEqualToSegment: | (AGSSegment *) | other |
Determines whether or not two time segments are equal.
| other | The segment to compare the current segment with. |
| + (instancetype) lineSegmentWithStartPoint: | (AGSPoint *) | startPoint | |
| angle: | (double) | angle | |
| length: | (double) | length | |
Initializes a line segment with the provided start point, angle and length.
| startPoint | The start coordinate along x-axis |
| angle | The angle in radians |
| length | The length in the unit of start point's spatial reference |
Initializes a line segment with the provided start and end points.
| startPoint | The start point |
| endPoint | The end point |
| + (instancetype) lineSegmentWithStartPoint: | (AGSPoint *) | startPoint | |
| endPoint: | (AGSPoint *) | endPoint | |
| spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Initializes a line segment with the provided spatial reference, start and end points.
| startPoint | The start point |
| endPoint | The end point |
| spatialReference | The spatial reference for the line segment to be constructed |
| + (instancetype) lineSegmentWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
Initializes a line segment with the provided coordinate values.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| + (instancetype) lineSegmentWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
| spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Initializes a line segment with the provided coordinate values.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| spatialReference | The spatial reference for the line segment to be constructed |
| + (instancetype) lineSegmentWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| zStart: | (double) | zStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
| zEnd: | (double) | zEnd | |
Initializes a line segment with the provided coordinate values.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| zStart | The start coordinate along z-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| zEnd | The end coordinate along z-axis |
| + (instancetype) lineSegmentWithXStart: | (double) | xStart | |
| yStart: | (double) | yStart | |
| zStart: | (double) | zStart | |
| xEnd: | (double) | xEnd | |
| yEnd: | (double) | yEnd | |
| zEnd: | (double) | zEnd | |
| spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Initializes a line segment with the provided coordinate values and spatial reference.
| xStart | The start coordinate along x-axis |
| yStart | The start coordinate along y-axis |
| zStart | The start coordinate along z-axis |
| xEnd | The end coordinate along x-axis |
| yEnd | The end coordinate along y-axis |
| zEnd | The end coordinate along z-axis |
| spatialReference | The spatial reference for the line segment to be constructed |
|
readnonatomicassigninherited |
Determines whether the segment is closed or not.
|
readnonatomicstronginherited |
The end point of the segment.
|
readnonatomicstronginherited |
The spatial reference of the segment.
|
readnonatomicstronginherited |
The start point of the segment.