Class: Poke::API::Geometry::S2LatLon
- Inherits:
-
Object
- Object
- Poke::API::Geometry::S2LatLon
- Defined in:
- lib/poke-api/geometry/s2_lat_lon.rb
Instance Method Summary collapse
-
#initialize(lat_degrees, lon_degrees) ⇒ S2LatLon
constructor
A new instance of S2LatLon.
- #to_point ⇒ Object
Constructor Details
#initialize(lat_degrees, lon_degrees) ⇒ S2LatLon
Returns a new instance of S2LatLon.
5 6 7 8 |
# File 'lib/poke-api/geometry/s2_lat_lon.rb', line 5 def initialize(lat_degrees, lon_degrees) @lat = lat_degrees * Math::PI / 180 @lon = lon_degrees * Math::PI / 180 end |