class

Flock::Collision::UnionFind

Inherits Reference < Object

Tiny union-find (disjoint set) over integer indices, used to group bodies into contact islands so an entire resting island can sleep together.

Constructors

new(n : Int32)
Source

Instance methods

find(x : Int32) : Int32
Source
union(a : Int32, b : Int32) : Nil
Source