Пример #1
0
 private bool islocationInView()
 {
     iustc.map.data.Rectangle rect = getView();
     GeoPoint p = new GeoPoint(watcher.Position.Location.Latitude, watcher.Position.Location.Longitude);
     return rect.contains(p);
 }
Пример #2
0
 public bool contains(GeoPoint point)
 {
     return south < point.lat && point.lat < north && west < point.lon && point.lon < east;
 }
Пример #3
0
        private bool isInWestCampus()
        {
//            if (this.lat > westCampus.south && this.lat < westCampus.north &&
//                this.lon < westCampus.east && this.lon > westCampus.west)
            GeoPoint p = new GeoPoint(this.lat, this.lon);
            if(westCampus.contains(p))
                return true;
            return false;
        }