Class: Geom::UTM
- Inherits:
-
Object
- Object
- Geom::UTM
- Defined in:
- lib/sketchup-api-stubs/stubs/Geom/UTM.rb
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.
44 45 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 44 def initialize(*args) end |
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.
59 60 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 59 def to_a end |
#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.
73 74 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 73 def to_latlong end |
#to_s ⇒ String
The #to_s method is used to retrieve a string representation of a UTM.
86 87 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 86 def to_s end |
#x ⇒ Float
The #x method returns the UTM x coordinate.
99 100 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 99 def x end |
#y ⇒ Float
The #y method returns the UTM y coordinate.
112 113 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 112 def y end |
#zone_letter ⇒ String
The #zone_letter method returns the UTM zone letter.
125 126 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 125 def zone_letter end |
#zone_number ⇒ Integer
The #zone_number method returns the UTM zone number.
138 139 |
# File 'lib/sketchup-api-stubs/stubs/Geom/UTM.rb', line 138 def zone_number end |