Add comments 2
This commit is contained in:
@@ -33,16 +33,17 @@ function startLinkSimulation() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Add force
|
/* Add force
|
||||||
* Please add the distance function before feeding the force
|
* Please add the distance function, links, and set simulation nodes
|
||||||
* it to the simulation or adding links.
|
* before feeding the force to the simulation.
|
||||||
*
|
*
|
||||||
* On setting the distance fn and being initialized by the simulation, the
|
* On setting the distance fn or being initialized by the simulation, the
|
||||||
* force will pre-calculate high-dimensional distances of every link and
|
* force will pre-calculate high-dimensional distances of every link and
|
||||||
* store that as cache.
|
* store that as cache.
|
||||||
* Adding distance fn before links means that the first pre-calculation will
|
* Adding distance fn and links before being initialize by the simulation
|
||||||
* calculate noting as there was no link.
|
* means that the first pre-calculation will calculate noting as there was
|
||||||
|
* no nodes list.
|
||||||
* The full pre-calculation will then occur once when the force is being
|
* The full pre-calculation will then occur once when the force is being
|
||||||
* initialized by the simulation.
|
* initialized by the simulation where nodes list is given.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
simulation
|
simulation
|
||||||
|
|||||||
Reference in New Issue
Block a user