Module: GeoVector::Macros

Included in:
Array, GeoPoint, Hash, String
Defined in:
lib/geo_vectors/macros.rb

Instance Method Summary collapse

Instance Method Details

#point_vectorObject Also known as: geo_vector, p_vector



3
4
5
# File 'lib/geo_vectors/macros.rb', line 3

def point_vector
  PointVector.new self.geo_point
end

#vectorObject



9
10
11
# File 'lib/geo_vectors/macros.rb', line 9

def vector
  GeoVector::Parser.create_vector *self
end