Class: Geom::LatLong
Relationships | |
Inherits: | Object |
Overview
The LatLong class contains various methods for creating and manipulating latitude and longitude coordinates.
Class Method Summary
-
.new ⇒ Geom::LatLong
constructor
The new method creates a
LatLong
object.
Instance Method Summary
-
#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 aUTM
object.
Constructor Details
.new ⇒ LatLong
.new(latlong) ⇒ LatLong
.new(latlong_array) ⇒ LatLong
.new(lat, long) ⇒ LatLong
LatLong
.new(latlong) ⇒ LatLong
.new(latlong_array) ⇒ LatLong
.new(lat, long) ⇒ LatLong
The new method creates a LatLong
object.
Instance Method Details
#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
The #to_s
method converts a LatLong
object to a ::String
.
#to_utm ⇒ Geom::UTM
The to_utm method converts a LatLong
object to a UTM
object.