CalculateAngle

CalculateAngle calculates an angle from the first coordinate to the second coordinate. The routine will return an angle from -180 to +180 degrees. You can specify the coordinates by passing the raw coordinate numbers or by passing the sprites.

Pascal
Added in version 1.1:

In version 1.0:

C#
Added in version 1.1:

In version 1.0:

Visual Basic .NET
Added in version 1.1:

In version 1.0:

Visual Basic 6
Added in version 1.1:

In version 1.0:

Also See

 * Vector
 * Sprite