hey,

i have got three sets of x an y coordinates , where one of the x y coordinates keeps on changing all the time.

lets say i have first set where the coordinates are int x=100 and int y=100;

second set would be : int x=100; int y=150; but the last set of coordinates would always change.

so if we would draw a line from the first set to the second set and from second set to the changing third set and back again to the first set of coordinates i would get a triangle.

what i want is to get the angel of the triangle which would show the degrees from the first set of points to the changing points.

i know i have to use one of the following: sin, cos or tan, but my trigonometry skills are very rusty.

i hope someone could help me or suggest me anything that would lead me to the right direction of solving this issue.

any help is greatly appreciated!!

THANK YOU