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); }
public bool contains(GeoPoint point) { return south < point.lat && point.lat < north && west < point.lon && point.lon < east; }
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; }