-
Notifications
You must be signed in to change notification settings - Fork 2
/
CLLocation+CH1903.h
48 lines (36 loc) · 1.04 KB
/
CLLocation+CH1903.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// CLLocation+CH1903.h
// g7
//
// Created by Jonas Schnelli on 22.04.10.
// Copyright 2010 include7 AG. All rights reserved.
//
// check: http://github.com/jonasschnelli/CLLocation-CH1903
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
@interface CLLocation (CH1903)
/*!
@method initWithCH1903x
@abstract initialize a CLLocation-Instance with CH1903 x/y coorinates
*/
- (id) initWithCH1903x:(double)x y:(double)y;
/*!
@method CH1903Y
@abstract returns the CH1903 y value of the location
*/
- (double)CH1903Y;
/*!
@method CH1903X
@abstract returns the CH1903 x value of the location
*/
- (double)CH1903X;
#pragma mark -
#pragma mark static methodes
+ (double)CHtoWGSlatWithX:(double)x y:(double)y;
+ (double)CHtoWGSlongWithX:(double)x y:(double)y;
+ (double)WGStoCHyWithLatitude:(double)lat longitude:(double)lng;
+ (double)WGStoCHxWithLatitude:(double)lat longitude:(double)lng;
+ (double)decToSex:(double)angle;
+ (double)degToSec:(double)angle;
+ (double)sexToDec:(double)angle;
@end