©2010 Google -
Code Home -
Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
English -
Español -
日本語 -
한국어 -
Português -
Pусский -
中文(简体) -
中文(繁體)
The LatLong class contains various methods for creating and manipulating latitude and longitude coordinates.
The Latitude method retrieves the latitude coordinate from a LatLong object.
Returns:
ll = [40.01700, 105.28300] latlong = Geom::LatLong.new(ll) latitude = latlong.latitude if (latitude) UI.messagebox latitude else UI.messagebox "Failure" end
The Latitude method retrieves the longitude coordinate from a LatLong object.
Returns:
ll = [40.01700, 105.28300] latlong = Geom::LatLong.new(ll) longitude = latlong.longitude if (longitude) UI.messagebox longitude else UI.messagebox "Failure" end
The new method creates a LatLong object.
Arguments:
Returns:
ll = [40.01700, 105.28300] latlong = Geom::LatLong.new(ll) if (latlong) UI.messagebox latlong else UI.messagebox "Failure" end
The to_a method converts a LatLong object to an array of two values.
Returns:
ll = [40.01700, 105.28300] latlong = Geom::LatLong.new(ll) a = latlong.to_a if (a) UI.messagebox a else UI.messagebox "Failure" end
The to_a method converts a LatLong object to a string.
Returns:
ll = [40.01700, 105.28300] latlong = Geom::LatLong.new(ll) s = latlong.to_s if (s) UI.messagebox s else UI.messagebox "Failure" end
The to_utm method converts a LatLong object to an array of two values.
Returns:
ll = [40.01700, 105.28300] latlong = Geom::LatLong.new(ll) utm = latlong.to_utm if (utm) UI.messagebox utm else UI.messagebox "Failure" end