I need a custom class that takes two Andoid Locations in the constructor. One is the Location that represents top/left of a mapped position, the second is the bottom/right. Then class these methods:
1) is a given Location within the bounds top/left, bottom/right
eg) is the Location of Las Vegas within a map that spans Washington State to Texas.
*note* The method cannot refer to google maps/services (presume no GPS/Internet available)
MapData m = new MapData(Location topLeft, Location bottomRight);
boolean onMap [login to view URL](Location thisLocation);
2) return the distance(in meters) from the left position of the map and a given Location
float distanceFromLeft = [login to view URL](Location thisLocation);
3) return the distance(in meters) from the top position of the map and a given Location
float distanceFromTop = [login to view URL](Location this Location);
The boolean test 1), and distances must be able to work across the equator and meridian.
If the point lies to the left of the map edge, the distanceFromLeft 2) should be negative.
If the point lies above the top of the map edge the distanceFromTop 3) should be negative.