{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/232","labels_url":"https://api.github.com/repos/Microsoft/Win2D/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Win2D/issues/232/comments","events_url":"https://api.github.com/repos/Microsoft/Win2D/issues/232/events","html_url":"https://github.com/Microsoft/Win2D/issues/232","id":125656130,"number":232,"title":"Determine vector where canvasgeometries intersect","user":{"login":"Karlitos2312","id":15105812,"avatar_url":"https://avatars.githubusercontent.com/u/15105812?v=3","gravatar_id":"","url":"https://api.github.com/users/Karlitos2312","html_url":"https://github.com/Karlitos2312","followers_url":"https://api.github.com/users/Karlitos2312/followers","following_url":"https://api.github.com/users/Karlitos2312/following{/other_user}","gists_url":"https://api.github.com/users/Karlitos2312/gists{/gist_id}","starred_url":"https://api.github.com/users/Karlitos2312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karlitos2312/subscriptions","organizations_url":"https://api.github.com/users/Karlitos2312/orgs","repos_url":"https://api.github.com/users/Karlitos2312/repos","events_url":"https://api.github.com/users/Karlitos2312/events{/privacy}","received_events_url":"https://api.github.com/users/Karlitos2312/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T17:32:48Z","updated_at":"2016-01-08T17:49:57Z","closed_at":null,"body":"Hi,\r\nI have created 2 canvasgeometries - one is a line and the other is a rectangle. How can I determine the vector where the line intersects with the rectangle.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/comments/170072844","html_url":"https://github.com/Microsoft/Win2D/issues/232#issuecomment-170072844","issue_url":"https://api.github.com/repos/Microsoft/Win2D/issues/232","id":170072844,"user":{"login":"clandrew","id":8118775,"avatar_url":"https://avatars.githubusercontent.com/u/8118775?v=3","gravatar_id":"","url":"https://api.github.com/users/clandrew","html_url":"https://github.com/clandrew","followers_url":"https://api.github.com/users/clandrew/followers","following_url":"https://api.github.com/users/clandrew/following{/other_user}","gists_url":"https://api.github.com/users/clandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/clandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clandrew/subscriptions","organizations_url":"https://api.github.com/users/clandrew/orgs","repos_url":"https://api.github.com/users/clandrew/repos","events_url":"https://api.github.com/users/clandrew/events{/privacy}","received_events_url":"https://api.github.com/users/clandrew/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T17:49:57Z","updated_at":"2016-01-08T17:49:57Z","body":"Win2D doesn't have a feature for obtaining vectors-at-points-of-intersection, but it does have [Geometry.CombineWith](http://microsoft.github.io/Win2D/html/M_Microsoft_Graphics_Canvas_Geometry_CanvasGeometry_CombineWith_1.htm) using CanvasGeometryCombine.Intersect. This will yield a geometry that's the intersection of the two source geometries.\r\n\r\nYou can take that result geometry, and look at its points using [SendPathTo](http://microsoft.github.io/Win2D/html/M_Microsoft_Graphics_Canvas_Geometry_CanvasGeometry_SendPathTo.htm). Depending on the kind of information you need, you can compute the outermost points of intersection, or do something else with the line segment. \r\n\r\nDoes this help?"}}