MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPLocationCoordinate3D.h
Go to the documentation of this file.
1//
2// MPLocationCoordinate3D.h
3// MapsIndoorsSDK
4//
5// Created by Michael Bech Hansen on 27/11/2017.
6// Copyright © 2017 MapsPeople A/S. All rights reserved.
7//
8
9#ifndef MPLocationCoordinate3D_h
10#define MPLocationCoordinate3D_h
11
12#import <CoreLocation/CoreLocation.h> // CLLocationCoordinate2D
13
14
25 CLLocationCoordinate2D latLng;
26 NSInteger floorId;
27};
29
30
31static inline MPLocationCoordinate3D MPLocationCoordinate3DMake( double lat, double lng, NSInteger floorId ) {
32
34 c3d.latLng = CLLocationCoordinate2DMake(lat, lng);
35 c3d.floorId = floorId;
36 return c3d;
37}
38
39static inline BOOL MPLocationCoordinate3DIsEqual( MPLocationCoordinate3D a, MPLocationCoordinate3D b ) {
40
41 return (a.latLng.latitude == b.latLng.latitude) && (a.latLng.longitude == b.latLng.longitude) && (a.floorId == b.floorId);
42}
43
44#define MPLocationCoordinate3DNull MPLocationCoordinate3DMake(0,0,0)
45
46#endif /* MPLocationCoordinate3D_h */
Definition MPLocationCoordinate3D.h:24
NSInteger floorId
Definition MPLocationCoordinate3D.h:26
CLLocationCoordinate2D latLng
Definition MPLocationCoordinate3D.h:25