Line | |
---|
1 | #pragma once |
---|
2 | |
---|
3 | #include "terrainModificationTechnique.h" |
---|
4 | |
---|
5 | |
---|
6 | terrainModificationTechnique::terrainModificationTechnique() |
---|
7 | { |
---|
8 | |
---|
9 | } |
---|
10 | |
---|
11 | terrainModificationTechnique::~terrainModificationTechnique() |
---|
12 | { |
---|
13 | |
---|
14 | } |
---|
15 | |
---|
16 | region::region() |
---|
17 | { |
---|
18 | _lat_min = 0.0; |
---|
19 | _lat_max = 0.0; |
---|
20 | _lon_min = 0.0; |
---|
21 | _lon_max = 0.0; |
---|
22 | } |
---|
23 | |
---|
24 | region::region( double lat_min, double lat_max, double lon_min, double lon_max) |
---|
25 | { |
---|
26 | _lat_min = lat_min; |
---|
27 | _lat_max = lat_max; |
---|
28 | _lon_min = lon_min; |
---|
29 | _lon_max = lon_max; |
---|
30 | } |
---|
31 | |
---|
32 | bool region::isInside(region& outsider) |
---|
33 | { |
---|
34 | if( outsider._lat_min <= _lat_min && _lat_max <= outsider._lat_max && outsider._lon_min <= _lon_min && _lon_max <= outsider._lon_max ) |
---|
35 | return true; |
---|
36 | else |
---|
37 | return false; |
---|
38 | } |
---|
39 | |
---|
40 | bool region::isFullOrPartiallyInside(region& outsider) |
---|
41 | { |
---|
42 | if( outsider._lat_min <= _lat_max && _lat_min <= outsider._lat_max && outsider._lon_min <= _lon_max && _lon_min <= outsider._lon_max ) |
---|
43 | return true; |
---|
44 | else |
---|
45 | return false; |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.