class EsriShapefile::Shapes::Point

A point consists of a pair of double-precision coordinates in the order X,Y.

Public Class Methods

at(x:, y:) click to toggle source
# File lib/esri_shapefile/models/shapes/point.rb, line 16
def self.at(x:, y:)
  point = Point.new
  point.x = x
  point.y = y
  point
end

Public Instance Methods

==(point)
Alias for: eql?
eql?(point) click to toggle source
# File lib/esri_shapefile/models/shapes/point.rb, line 23
def eql?(point)
  point.is_a?(Point) && point.x == x && point.y == y
end
Also aliased as: ==