class Charta::Point
Represent a Point
Public Instance Methods
distance(point)
click to toggle source
# File lib/charta/point.rb, line 14 def distance(point) raise ArgumentError.new('wrong type: Charta::Point required') if point.class.name != 'Charta::Point' to_rgeo.distance(point.to_rgeo) end
x()
click to toggle source
# File lib/charta/point.rb, line 4 def x feature.x end
Also aliased as: longitude
y()
click to toggle source
# File lib/charta/point.rb, line 9 def y feature.y end
Also aliased as: latitude