Skip to content

ESE_Math Class

NarcoMarshDev edited this page Sep 23, 2022 · 2 revisions

Category: Static
Path: scripts/Game/ESE_Math.c

New useful math methods and constants

Overview

Todo

Methods

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Return⠀⠀⠀⠀⠀ Description
FixInt180 (int angle) int Takes any integer angle and fixes it between -180 & 180 degrees. Values over 360 get converted to one >= 360 before fixing.
FixFloat180 (float angle) float Same as FixInt180() but using floats instead. This method is slower however due to using a float modulus operation.
FixVector180 (vector vec) vector Runs FixFloat180() on all elements of a given vector and returns the result.

Clone this wiki locally