Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/delaunator/triangulator.rb

Instance Method Summary collapse

Instance Method Details

#swap!(a, b) ⇒ Object



427
428
429
430
# File 'lib/delaunator/triangulator.rb', line 427

def swap!(a, b)
  self[a], self[b] = self[b], self[a]
  self
end