ArcGIS Runtime SDK for iOS
100.15
|
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 |
BOOL | curve |
AGSPoint * | endPoint |
AGSSpatialReference * | spatialReference |
AGSPoint * | startPoint |
- (instancetype) initWithStartPoint: | (AGSPoint *) | startPoint | |
angle: | (double) | angle | |
length: | (double) | length | |
Creates 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. |
Creates a line segment based on two points.
If both points have a spatial reference set, they must be equal.
startPoint | The start point. |
endPoint | The end point. |
- (instancetype) initWithStartPoint: | (AGSPoint *) | startPoint | |
endPoint: | (AGSPoint *) | endPoint | |
spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Creates a line segment based on two points and a spatial reference.
The spatial reference parameter is used if the points have a nil
spatial reference. If more than one spatial reference is supplied (as a parameter or as a property of an AGSPoint
parameter), they must all be equal.
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 | |
Creates a line segment based on coordinates.
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 | |
Creates a line segment based on coordinates 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 | |
Creates a line segment based on 3D coordinates.
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 | |
Creates a line segment based on 3D coordinates and a 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 | |
Creates 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. |
Creates 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 | |
Creates 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 | |
Creates 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 | |
Creates 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 | |
Creates 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 | |
Creates 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.
|
readnonatomicassigninherited |
NO
if the object is an AGSLineSegment
, YES
otherwise.
Prior to v100.12, only AGSLineSegment
instances were supported when creating new geometries using an AGSMultipartBuilder
or iterating the AGSSegment
instances in an existing AGSMultipart
geometry.
From v100.12, you can add curve segments (AGSCubicBezierSegment
, AGSEllipticArcSegment
) when using an AGSMultipartBuilder
, and get them back from an existing AGSMultipart
geometry when AGSGeometry::hasCurves
is YES
.
AGSGeometryBuilder::hasCurves
, AGSMutablePart::hasCurves
, AGSCubicBezierSegment
, AGSEllipticArcSegment
|
readnonatomicstronginherited |
The end point of the segment.
|
readnonatomicstronginherited |
The spatial reference of the segment.
|
readnonatomicstronginherited |
The start point of the segment.