You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in line 52 what value of l is used in / l * strength
in line 53 what value of rj is used in ri2 + rj and it no longer is a radius it is a radius2
The compiler/interpreter is free to choose whichever sub expression to calculate first. Thus the resulting value depends on the compiler/interpreter used.
Better to rewrite the code to make it unambiguous what is calculated:
In
collide.js
there are 2 lines with this issued3-force/src/collide.js
Lines 52 to 53 in c3e73cf
in line 52 what value of
l
is used in/ l * strength
in line 53 what value of
rj
is used inri2 + rj
and it no longer is a radius it is a radius2The compiler/interpreter is free to choose whichever sub expression to calculate first. Thus the resulting value depends on the compiler/interpreter used.
Better to rewrite the code to make it unambiguous what is calculated:
In the function
r
is used as a distance between center points. Re-using the name for a correction factor is confusing.The text was updated successfully, but these errors were encountered: