I have a circle and want to draw a line inside that circle from the center (50|50) to the edge of the circle through the point i clicked on.
To test things, I already added this to my Circle.MouseDown
event which draws the line from the center to the point I clicked on:
var PosX2 = e.GetPosition(MyCircle).X;
var PosY2 = e.GetPosition(MyCircle).Y;
CircleLine.X1 = 50;
CircleLine.Y1 = 50;
CircleLine.X2 = PosX2;
CircleLine.Y2 = PosY2;
What do I need to add to "stretch" my line to the edge of the Circle?