flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
12
VISUALIZACION/node_modules/ngraph.forcelayout/lib/spring.js
generated
vendored
Executable file
12
VISUALIZACION/node_modules/ngraph.forcelayout/lib/spring.js
generated
vendored
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = Spring;
|
||||
|
||||
/**
|
||||
* Represents a physical spring. Spring connects two bodies, has rest length
|
||||
* stiffness coefficient and optional weight
|
||||
*/
|
||||
function Spring(fromBody, toBody, length, springCoefficient) {
|
||||
this.from = fromBody;
|
||||
this.to = toBody;
|
||||
this.length = length;
|
||||
this.coefficient = springCoefficient;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue