mongoid/mongoid-geospatial

View on GitHub
lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb

Summary

Maintainability
A
0 mins
Test Coverage
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