Class: Geom::UTM
- Inherits:
-
Object
- Object
- Geom::UTM
Overview
Valid ranges for #zone_number and #zone_letter are 1-60 and C-X (omitting I and O). Valid ranges for #x and #y are 100000-899999.
The UTM class lets you work with UTM map coordinates.
Instance Method Summary # collapse
-
#initialize(*args) ⇒ Geom::UTM
constructor
The #initialize method is used to create a new UTM coordinate.
-
#to_a ⇒ Array(Integer, String, Float, Float)
The #to_a method returns a UTM coordinate as a 4 element array.
-
#to_latlong ⇒ Geom::LatLong
The #to_latlong method is used to convert UTM coordinates to latitude and longitude.
-
#to_s ⇒ String
The #to_s method is used to retrieve a string representation of a UTM.
-
#x ⇒ Float
The #x method returns the UTM x coordinate.
-
#y ⇒ Float
The #y method returns the UTM y coordinate.
-
#zone_letter ⇒ String
The #zone_letter method returns the UTM zone letter.
-
#zone_number ⇒ Integer
The #zone_number method returns the UTM zone number.
Constructor Details
↑ #initialize(zone_number, zone_letter, x, y) ⇒ Geom::UTM #initialize(utm) ⇒ Geom::UTM #initialize(array) ⇒ Geom::UTM
The #initialize method is used to create a new UTM coordinate. You will often create UTM objects by calling the method Sketchup::Model#point_to_utm instead of calling this method.
Instance Method Details
↑ #to_a ⇒ Array(Integer, String, Float, Float)
The #to_a method returns a UTM coordinate as a 4 element array. The Array elements are the zone number, the zone letter, the x coordinate and the y coordinate.
↑ #to_latlong ⇒ Geom::LatLong
The #to_latlong method is used to convert UTM coordinates to latitude and longitude. See the LatLong class for more information.
↑ #zone_letter ⇒ String
The #zone_letter method returns the UTM zone letter.
↑ #zone_number ⇒ Integer
The #zone_number method returns the UTM zone number.