3/11/2009

Note on Implement Force-Directed Layout

1. Resistance: use G1G2/r^2
 However, Since r may be too small, we'd better add a limitation on the final return force

2. Attraction: use K△X

3. Gravity: Use mg

4. On calculating the component of the force: 
use θ = arctan(△Y / △X ) F_x = Fcosθ , F_y = Fsinθ
remember to deal with △X = 0

Algorithm: follow wikipedia

0 comments: