tech-radar
tech-radar copied to clipboard
How are overlaps avoided?
first of all thank you for open sourcing your code used for your tech radar.
this is not a issue, but a question on tech radar.js :
how are overlaps between data points on the tech radar avoided?
the custom random function ensures distinct values, however I can't find any code taking the radii of the points into account, to avoid a randomized (x,y) point being within the circle of another point, so that the cartesian diff (Math.sqrt(Math.pow(pointA.x - pointB.x, 2) + Math.pow(pointA.y - pointB.y, 2),)
) is always greater 2 * r
(r being the dot radius).
thank you for any pointers