Normalize180

From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.


Actor

native clearscope static double Normalize180(double ang)

Usage

Normalizes the given angle to a range of [-180, 180]. Useful if it's unknown what the actual range of the angle will be (such as with the player's angle).

Parameters

  • ang - The angle to normalize

Return value

Returns the normalized angle.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.