MSFMapPos
Objective-C
@interface MSFMapPos : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFMapPos : NSObject
A double precision map position defined using three coordinates. X and y coordinates denote positions on the map, while z coordinate is height from the ground plane. Actual units for x, y and z depend on map projection. For example, in EPSG:4326 x is used for latitude, y for longitude and z for height in meters.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Constructs a MapPos object. All coordinates will be 0.
Declaration
Objective-C
- (id)init;Swift
init!() -
Constructs a MapPos object from 2 coordinates. The z coordinate will be 0.
Declaration
Objective-C
- (id)initWithX:(double)x y:(double)y;Swift
init!(x: Double, y: Double)Parameters
xThe x coordinate.
yThe y coordinate.
-
Constructs a MapPos object from 3 coordinates.
Declaration
Objective-C
- (id)initWithX:(double)x y:(double)y z:(double)z;Swift
init!(x: Double, y: Double, z: Double)Parameters
xThe x coordinate.
yThe y coordinate.
zThe z coordinate.
-
Returns the x coordinate of this map position.
Declaration
Objective-C
- (double)getX;Swift
func getX() -> DoubleReturn Value
The x coordinate of this map position.
-
Returns the y coordinate of this map position.
Declaration
Objective-C
- (double)getY;Swift
func getY() -> DoubleReturn Value
The y coordinate of this map position.
-
Returns the z coordinate of this map position.
Declaration
Objective-C
- (double)getZ;Swift
func getZ() -> DoubleReturn Value
The z coordinate of this map position.
-
Checks for equality between this and another map position.
Declaration
Objective-C
- (BOOL)isEqualInternal:(MSFMapPos *)p;Swift
func isEqualInternal(_ p: MSFMapPos!) -> BoolParameters
pThe other map position.
Return Value
True if equal.
-
Returns the hash value of this object.
Declaration
Objective-C
- (int)hashInternal;Swift
func hashInternal() -> Int32Return Value
The hash value of this object.
-
Creates a string representation of this map position, useful for logging.
Declaration
Objective-C
- (NSString *)description;Swift
func description() -> String!Return Value
The string representation of this map position.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()