eisman / neo4jd3

Neo4j graph visualization using D3.js
https://eisman.github.io/neo4jd3/
MIT License
1.37k stars 422 forks source link

Could you explain the idea behind your calculation? #62

Open tdoan2010 opened 3 years ago

tdoan2010 commented 3 years ago

Hi @eisman, I'm very interested in your project and I want to develop it further and make it work with the latest D3 version. To be able to do that, I would like to understand your calculation. Could you please explain to me why you need these functions?

  1. rotation
  2. rotatePoint
  3. rotate
  4. unitaryNormalVector
  5. unitaryVector

I see that you use them a lot in the tickRelationshipsOutlines function. What kind of path are you trying to draw each tick?

Degooya commented 3 years ago

it's for calculating the relationships, which comprises arrows and captions. Unfortunately I'm not a mathematician, which is why I can't explain how the calculation works. Maybe this will help though:

https://www2.mathematik.tu-darmstadt.de/~otto/LEHRE/notesLA218.pdf