Sha256: d494bb25448419d5c561da07a517157e71049deac01b9c1b775f7ba46bfdb94a

Contents?: true

Size: 232 Bytes

Versions: 5

Compression:

Stored size: 232 Bytes

Contents

module RGeo
  module Geographic
    # RGeo Point
    class SphericalPointImpl
      def to_xy
        [x, y]
      end

      def to_a
        [x, y, z]
      end

      def [](index)
        to_a[index]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-geospatial-5.1.0 lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb
mongoid-geospatial-5.0.0 lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb
mongoid-geospatial-4.0.1 lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb
mongoid-geospatial-4.0.0 lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb
mongoid-geospatial-3.9.0 lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb