ArcGIS Runtime SDK for iOS: AGSPointBuilder.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSPointBuilder.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSGeometryBuilder.h>
27 
28 @class AGSPoint;
29 @class AGSSpatialReference;
30 
41 
42 
43 #pragma mark -
44 #pragma mark initializers
45 
46 
47 
54 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)sr;
55 
62 +(instancetype)pointBuilderWithSpatialReference:(nullable AGSSpatialReference*)sr;
63 
70 -(instancetype)initWithPoint:(nullable AGSPoint *)point;
71 
78 +(instancetype)pointBuilderWithPoint:(nullable AGSPoint *)point;
79 
80 #pragma mark -
81 #pragma mark properties
82 
88 @property (nonatomic, assign, readwrite) double x;
89 
95 @property (nonatomic, assign, readwrite) double y;
96 
102 @property (nonatomic, assign, readwrite) double m;
103 
112 @property (nonatomic, assign, readwrite) double z;
113 
114 #pragma mark -
115 #pragma mark methods
116 
125 -(instancetype)setX:(double)x y:(double)y;
126 
135 -(instancetype)offsetByX:(double)xOffset y:(double)yOffset;
136 
144 -(instancetype)replaceGeometry:(nullable AGSPoint*)geometry;
145 
153 
154 
155 @end
A builder to build geometries.
Definition: AGSGeometryBuilder.h:43
A builder to build point geometries.
Definition: AGSPointBuilder.h:41
double x
Definition: AGSPointBuilder.h:88
AGSPoint * toGeometry()
double m
Definition: AGSPointBuilder.h:102
double z
Definition: AGSPointBuilder.h:112
double y
Definition: AGSPointBuilder.h:95
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:49