Class: RGeo::Geographic::SphericalPointImpl

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid_location/extensions/rgeo_spherical_point_impl.rb

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



8
9
10
# File 'lib/mongoid_location/extensions/rgeo_spherical_point_impl.rb', line 8

def [] index
  to_a[index]
end

#to_aObject



4
5
6
# File 'lib/mongoid_location/extensions/rgeo_spherical_point_impl.rb', line 4

def to_a
  [x, y, z]
end