0
$\begingroup$

I have 2 lines that i draw like this:

PointF PitCenter = new Point(150, 186); PointF p = new PointF(PitCenter.X - 20, PitCenter.Y - 250); PointF p2 = new PointF(PitCenter.X + 20, PitCenter.Y - 250);  DrawLine(PitCenter, new PointF(     (p.Y - PitCenter.Y) * Math.Sin(Alpha * Math.PI / 180) + p.X),     PitCenter.Y + (p.Y - PitCenter.Y) * Math.Cos(Alpha * Math.PI / 180));  DrawLine(PitCenter, new PointF(     (p2.Y - PitCenter.Y) * Math.Sin(Alpha * Math.PI / 180) + p2.X),     PitCenter.Y + (p2.Y - PitCenter.Y) * Math.Cos(Alpha * Math.PI / 180)); 

New X calculation: (p.Y - PitCenter.Y) * Math.Sin(Alpha * Math.PI / 180) + p.X)

New Y calculation: PitCenter.Y + (p.Y - PitCenter.Y) * Math.Cos(Alpha * Math.PI / 180)

Here are the lines when Alpha = 0;

enter image description here

And here are the lines after 90 degrees rotation..

enter image description here

As you see the lines somehow meets.. i really cant understand why.. Any ideas?

1 Answers 1