Get second point of line from its size and angle

BlitzMax Forums/BlitzMax Beginners Area/Get second point of line from its size and angle

I believe it's something like this:
Function XY_FromAngle(x1:Float , y1:Float , Distance:Float , Angle0:Float , x2:Float Var , y2:Float Var) 
	
	x2 = Cos(angle0) * Distance + x1 
	y2 = Sin(angle0) * Distance + y1
End Function

Untested.