Module

Hylograph.Forces.Group

Package
purescript-hylograph-forces
Repository
afcondon/purescript-hylograph-forces

Which group a node is in, for the forces that act by group: cohesion and scoped many-body.

#Membership Source

data Membership

A node is in one group, named by a number, or in none.

Constructors

#ungrouped Source

ungrouped :: Membership

In no group.

#inGroup Source

inGroup :: Int -> Membership

In the group with this number.

#grouped Source

grouped :: forall item. (item -> Membership) -> Array item -> Array (Array item)

The members of each group: groups in ascending order of their number, members in the order they were given. Items in no group are left out.