Code example for Location

Methods: bearingTo

0
	} 
 
	public double azimuthTo(NTCoordinates otherCoordinates)
	{ 
		if(otherCoordinates instanceof AndroidNTCoordinates)
			return location.bearingTo(((AndroidNTCoordinates) otherCoordinates).location);
		else 
			throw new IllegalArgumentException("Wrong instance type");
	} 
 
	public void setLatitude(double latitude)
	{ 
		location.setLatitude(latitude);		
	} 
 
	public void setLongitude(double longitude)
	{ 
		location.setLongitude(longitude);
	}