svg - Get subpath in Raphael.js between two points, not positions -


i have path in raphael.js bezier curve. 2 lines intersect path. can points of intersections raphael.pathintersection(). want path string subpath between these 2 points, though. raphael.getsubpath() needs know positions along path, don't know these positions, absolute points. how can go getting positions of these intersections can find subpath?

thanks

edit: below intersection object returned first of 2 intersections make start , finish of subpath want find. can see segment intersection occurs in, how actual position along path start information?

0: object   bez1: array[8]     0: 746.6695658365885     1: 444.9913024902344     2: 746.6695658365885     3: 444.9913024902344     4: 767.3333333333334     5: 383     6: 767.3333333333334     7: 383   bez2: array[8]     0: 743     1: 427     2: 750     3: 428.5     4: 752.5     5: 428.8333333333333     6: 761     7: 432   segment1: 1   segment2: 9   t1: 0.330626006717131   t2: 0.5304347826090153   x: 751.9768115942079   y: 429.0695652173915 

actually pathintersection returns positions on intersecting paths t1 & t2 in return object, not absolute position.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -