Class: Geom::LatLong
- Inherits:
-
Object
- Object
- Geom::LatLong
- Defined in:
- lib/sketchup-api-stubs/stubs/Geom/LatLong.rb
Overview
The LatLong class contains various methods for creating and manipulating latitude and longitude coordinates.
Instance Method Summary collapse
-
#initialize(*args) ⇒ LatLong
constructor
The new method creates a LatLong object.
-
#latitude ⇒ Float
The Latitude method retrieves the latitude coordinate from a LatLong object.
-
#longitude ⇒ Float
The Latitude method retrieves the longitude coordinate from a LatLong object.
-
#to_a ⇒ Array(Float, Float)
The #to_a method converts a LatLong object to an array of two values.
- #to_s ⇒ String
-
#to_utm ⇒ Geom::UTM
The to_utm method converts a LatLong object to a UTM object.
Constructor Details
#initialize ⇒ Geom::LatLong #initialize(latlong) ⇒ Geom::LatLong #initialize(latlong_array) ⇒ Geom::LatLong #initialize(lat, long) ⇒ Geom::LatLong
The new method creates a LatLong object.
44 45 |
# File 'lib/sketchup-api-stubs/stubs/Geom/LatLong.rb', line 44 def initialize(*args) end |
Instance Method Details
#latitude ⇒ Float
The Latitude method retrieves the latitude coordinate from a LatLong object.
62 63 |
# File 'lib/sketchup-api-stubs/stubs/Geom/LatLong.rb', line 62 def latitude end |
#longitude ⇒ Float
The Latitude method retrieves the longitude coordinate from a LatLong object.
81 82 |
# File 'lib/sketchup-api-stubs/stubs/Geom/LatLong.rb', line 81 def longitude end |
#to_a ⇒ Array(Float, Float)
The #to_a method converts a LatLong object to an array of two values.
93 94 |
# File 'lib/sketchup-api-stubs/stubs/Geom/LatLong.rb', line 93 def to_a end |
#to_s ⇒ String
105 106 |
# File 'lib/sketchup-api-stubs/stubs/Geom/LatLong.rb', line 105 def to_s end |
#to_utm ⇒ Geom::UTM
The to_utm method converts a LatLong object to a UTM object.
123 124 |
# File 'lib/sketchup-api-stubs/stubs/Geom/LatLong.rb', line 123 def to_utm end |