Rotation of line in c Or c++
I have another problem that is how to rotate the line at 90 degree from the origin.
for example, i have a line x,y
__________________
x.......................... y
and now i want to rotate this line at 90 degree as shown bellow
90
|
|
|
|
|
|
|
|
X
rotation at 90 degree
Pls help me in solving this problem