I am using C#, GDI+. I have drawn the line (using DrawLine()) from point(10,10) to point(20,20). The center point of the line is (15,15). Suppose i Rotate At(10,10) the line for 30 degrees. How to calculate the center point after rotating?
I am using C#, GDI+. I have drawn the line (using DrawLine()) from point(10,10) to point(20,20). The center point of the line is (15,15). Suppose i Rotate At(10,10) the line for 30 degrees. How to calculate the center point after rotating?
For a line from (a_x,a_y) to (b_x,b_y) this is very simple. The center is always ( (a_x+b_x)/2, (a_y+b_y)/2 ) So either you have the new endpoints and use this formula or you apply your transformation to the old centerpoint (yes you can do this in .net)