SFGPoint
Objective-C
@interface SFGPoint : SFGGeometry
Swift
class SFGPoint : SFGGeometry
Point
-
Position
Declaration
Objective-C
@property (nonatomic, strong) SFGPosition *position;
Swift
var position: SFGPosition! { get set }
-
Create
Declaration
Objective-C
+ (SFGPoint *)point;
Return Value
new point
-
Create
Declaration
Objective-C
+ (SFGPoint *)pointWithCoordinates:(NSArray *)coordinates;
Parameters
coordinates
coordinate positions
Return Value
new point
-
Create
Declaration
Objective-C
+ (SFGPoint *)pointWithPosition:(SFGPosition *)position;
Parameters
position
position
Return Value
new point
-
Create
Declaration
Objective-C
+ (SFGPoint *)pointWithPoint:(SFPoint *)point;
Parameters
point
simple point
Return Value
new point
-
Create
Declaration
Objective-C
+ (SFGPoint *)pointWithTree:(NSDictionary *)tree;
Parameters
tree
JSON tree
Return Value
new point
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithCoordinates:(NSArray *)coordinates;
Swift
init!(coordinates: [Any]!)
Parameters
coordinates
coordinate positions
Return Value
new point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPosition:(SFGPosition *)position;
Swift
init!(position: SFGPosition!)
Parameters
position
position
Return Value
new point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTree:(NSDictionary *)tree;
Swift
init!(tree: [AnyHashable : Any]!)
Parameters
tree
JSON tree
Return Value
new point
-
Get the simple point
Return Value
simple point