Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Alignment of Polygon

$
0
0

Hello,

I have two polygons on a Canvas. My requirement is that if i drag one polygon over other then i want to find the closest point of both polygons and align the second polygon accordingly.

For example below are two polygons, I am dragging maroon polygon on to blue one.

So I want to find the nearest corner points and align the maroon polygon accordingly, something like below:

Thanks,

Abdi


Viewing all articles
Browse latest Browse all 18858


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>