I'm trying to find the cursor position related to the red line in the image below.
I tried these topics: Using atan2 to find angle between two vectors And How to calculate the angle between a line and the horizontal axis? but using Math.Atan2
But there is a problem, P1 and P2 have not same values if I use these methods.
Is there any method to get any position of any points on a UIElement (e.g. Ellipse) using the red vector such as every point with the same angle (here P1 and P2) has the same value ?