Finding Angles

BlitzMax Forums/BlitzMax Programming/Finding Angles

Here's the Function I use for calculating the angle from one point to another:

Function calcAngle2D( x1, y1, x2, y2 )
	Local angle:Int=ATan2( ( y2 - y1 ), ( x2 - x1 ) ) + 180
	Return angle:Int
End Function


Muttley