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
I'd like lines to be able to avoid things, or at least avoid coming too close to things that they're parallel to. If they need to get across something, they should intersect it as perpendicularly as possbile. They should also never cross dots.
One way to do this might be to take the formula of every line that this new line can cross, find the differential at the point where it will cross it, and pick the angle to maximise the total differential difference.
That would mean that I need to track the equation for each line in the whole shape, though - at least to the point that I can find the gradient at any given point along them.
Therefore, instead of having a bunch of SVG lines and a bunch of virtual "maths-only" lines, it might be better to just have the maths lines and then draw the SVG using them right at the very end. That should help eliminate any discrepancies between the two.
No description provided.
The text was updated successfully, but these errors were encountered: