NSDK_Position
@interface NSDK_Position : NSObject
Specifies a real-world position in Mercator format.
@author PTV AG Karlsruhe
-
base init function
Declaration
Objective-C
- (id)init;
Swift
init!()
-
init function
Declaration
Objective-C
- (id)initWithX:(int)x y:(int)y;
Swift
init!(x: Int32, y: Int32)
Parameters
x
Mercator position (longitude)
y
Mercator position (latitude)
-
Returns the longitude of the mercator position.
Declaration
Objective-C
- (int)getX;
Swift
func getX() -> Int32
Return Value
the longitude.
-
Returns the latitude of the mercator position.
Declaration
Objective-C
- (int)getY;
Swift
func getY() -> Int32
Return Value
the latitude.
-
Sets the longitude of the mercator position.
Declaration
Objective-C
- (void)setX:(int)x;
Swift
func setX(_ x: Int32)
Parameters
x
the longitude.
-
Sets the latitude of the mercator position.
Declaration
Objective-C
- (void)setY:(int)y;
Swift
func setY(_ y: Int32)
Parameters
y
the latitude.
-
Creates a geodez position
Declaration
Objective-C
- (NSDK_GeoPosition *)toGeoPosition;
Swift
func toGeoPosition() -> NSDK_GeoPosition!
Return Value
the geodez position
-
static function which builds a mercator position from longitude, latitude values
Declaration
Objective-C
+ (NSDK_Position *)fromGeoDezWithLongitude:(double)lon latitude:(double)lat;
Swift
class func fromGeoDez(withLongitude lon: Double, latitude lat: Double) -> NSDK_Position!
Parameters
lon
the longitude value
lat
the latitude value
Return Value
the mercator position