My Project
BaiduPanoUtils.h
Go to the documentation of this file.
1 //
2 // BaiduPanoUtils.h
3 // BaiduPanoSDK
4 //
5 // Created by baidu on 15/4/28.
6 // Copyright (c) 2015年 baidu. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <CoreGraphics/CoreGraphics.h>
11 #import <UIKit/UIKit.h>
12 #import <CoreLocation/CoreLocation.h>
13 typedef struct MecatorPoint
14 {
15  double x;
16  double y;
17  MecatorPoint():x(0.0), y(0.0) {}
18  MecatorPoint(double dx, double dy):x(dx), y(dy) {}
20 
21 typedef enum : NSUInteger {
22  COOR_TYPE_BDLL = 1,//百度坐标
23  COOR_TYPE_BDMC = 2,//百度墨卡托坐标
24  COOR_TYPE_GPS = 3,//GPS原始坐标
25  COOR_TYPE_COMMON = 4,//其他坐标,腾讯,高德,google等
26 } COOR_TYPE;
27 
28 @interface BaiduPanoUtils : NSObject
29 
30 + (MECATORPOINT)getMcWithLon:(double)lon lat:(double)lat;
31 + (const char *)convertUIImageToBitmapRGBA8:(UIImage *)image;
32 + (CLLocationCoordinate2D)baiduCoorEncryptLon:(double)lon lat:(double)lat coorType:(COOR_TYPE)type;
33 + (unsigned long) hexFromUIColor: (UIColor*) color;
34 + (float) hexFromUIEdgeInsets:(UIEdgeInsets)edgeInsets;
35 
36 + (NSString *)distanceMcX1:(double) x1 mcY1:(double) y1 mcX2:(double) x2 mcY2:(double) y2;
37 @end
struct MecatorPoint MECATORPOINT
MecatorPoint(double dx, double dy)
COOR_TYPE
struct MecatorPoint * BPMECATORPOINT