Rotate Line with An Angle to Horizontal
Every programmer should know fundamentals of mathematics
Nothing much in UI but Lets look at the Methods that I have Used
Covert Degrees to Radians
public static double Rad(double degree){
double rad = (Math.PI/180)*degree;
return rad;
}
Findings X & Y coordinates using trigonometry
public static double Xcord(double degree){
double Xcord = Math.cos(Rad(degree))*150;
return Xcord;
}
public static double Ycord(double degree){
double Ycord = Math.sin(Rad(degree))*150;
return Ycord;
}