Method: Math2D::Vector2D#==

Defined in:
lib/math2d/vector2d.rb

#==(other) ⇒ Boolean

Compares self and other according to their components.

Parameters:

Returns:

  • (Boolean)


160
161
162
# File 'lib/math2d/vector2d.rb', line 160

def ==(other)
  (@x == other.x) && (@y == other.y)
end