Hylograph.Forces.ThreeD.Collide
- Package
- purescript-hylograph-forces
- Repository
- afcondon/purescript-hylograph-forces
The collision force in three dimensions: treat each node as a sphere and push overlapping spheres apart.
Ported from d3-force-3d 3.0.6, collide.js (MIT, Copyright 2017 Vasco
Asturiano; itself from d3-force, ISC, Mike Bostock); see LICENSE. It is
d3-force's collide.js with a third coordinate, over d3-octree, and the
shape is Hylograph.Forces.Collide's: each iteration builds the octree
of where the nodes are about to be (x + vx), turns it into a chain of
Regions that know the largest radius inside them, and walks the chain
once per node. A walk returns the node's new velocity and the new
velocities of the nodes it pushed, which are written when it returns.
Like d3, this looks only at the newest of several nodes at exactly the same place.
#defaultConfig Source
defaultConfig :: forall row. Config rowd3's defaults: radius 1, full strength, one iteration.
- Modules
- Hylograph.
Forces - Hylograph.
Forces. Center - Hylograph.
Forces. Cohesion - Hylograph.
Forces. Collide - Hylograph.
Forces. Contain - Hylograph.
Forces. Directional - Hylograph.
Forces. Group - Hylograph.
Forces. Link - Hylograph.
Forces. Linkage - Hylograph.
Forces. ManyBody - Hylograph.
Forces. Measure - Hylograph.
Forces. Node - Hylograph.
Forces. Position - Hylograph.
Forces. Quadtree - Hylograph.
Forces. Radial - Hylograph.
Forces. Random - Hylograph.
Forces. RectCollide - Hylograph.
Forces. Snapshot - Hylograph.
Forces. ThreeD - Hylograph.
Forces. ThreeD. Center - Hylograph.
Forces. ThreeD. Collide - Hylograph.
Forces. ThreeD. Link - Hylograph.
Forces. ThreeD. ManyBody - Hylograph.
Forces. ThreeD. Node - Hylograph.
Forces. ThreeD. Octree - Hylograph.
Forces. ThreeD. Position - Hylograph.
Forces. ThreeD. Radial - Hylograph.
Forces. ThreeD. Tick - Hylograph.
Forces. Tick - Hylograph.
Forces. Towards