Class: Proj::Api::PJ_COORD

Inherits:
FFI::Union
  • Object
show all
Defined in:
lib/api/api_5_0.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



150
151
152
# File 'lib/api/api_5_0.rb', line 150

def ==(other)
  self.eql?(other)
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


143
144
145
146
147
148
# File 'lib/api/api_5_0.rb', line 143

def eql?(other)
  self[:v][0] == other[:v][0] &&
  self[:v][1] == other[:v][1] &&
  self[:v][2] == other[:v][2] &&
  self[:v][3] == other[:v][3]
end