Function to convert control points from absolute coordinates to edge relative coordinates #3200
EliotRagueneau
started this conversation in
General
Replies: 1 comment
-
Great. If we were to add absolute coordinates as a builtin feature, a lot of calculations (like the inverse normal vector) are already calculated in the lib. So, the translation from the above code into the lib wouldn't be too onerous. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I've struggled a bit to develop this function so I thought that it might be of some interest to other users.
Basically it's use case is for when you have an edge with some control points (segments, bezier, etc), but you have absolute coordinates and not the cytoscape required edge relative coordinates.
Here i'm using package vectorious@6.1.12 to facilitate all the required matrix and vectors manipulation
Beta Was this translation helpful? Give feedback.
All reactions