Hiya people

Wondered if anyone could help with drawing a line on a gauge I am doing for a flight sim please?

I have got the following code for drawing a rotating needle on screen:

Code:
linA.X1 = Cos((intDataValue * PI) / 125) * 83 + linA.X2
linA.Y1 = Sin((intDataValue * PI) / 125) * 83 + linA.Y2
But it is not drawing in the right place!

The gauge goes from 0 to 250. PI is set as 3.14159. And intDataValue is the speed the sim is reporting from 0 to 250...

The gauge starts with the needle vertical at the following coordinates:

x1, y1 - 88, 5
x2, y2 - 88, 88

And the gauge is shown below...


Many thanks in advance