RMTransform.h
826 Bytes
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
//
// Transform.h
// Images
//
// Created by Joseph Gentle on 18/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RMFoundation.h"
#import "RMLatLong.h"
@class RMProjection;
@interface RMTransform : NSObject {
RMProjection* source;
RMProjection* destination;
bool is_source_latlong;
bool is_dest_latlong;
}
-(id) initFrom: (RMProjection*)source To: (RMProjection*)dest;
-(CLLocationCoordinate2D) projectForward: (CLLocationCoordinate2D)point AtZoom: (double)z;
-(CLLocationCoordinate2D) projectInverse: (CLLocationCoordinate2D)point AtZoom: (double)z;
@end
/*
proj_transform(projection const& source,
projection const& dest);
bool forward (double& x, double& y , double& z) const;
bool backward (double& x, double& y , double& z) const;
*/