![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Static Protected Attributes | |
| static const ref RandomGenerator | RANDOM_GENERATOR = new RandomGenerator() |
| static const float | MILS_NATO2DEG = 0.05625 |
| static const float | MILS_WP2DEG = 0.06 |
| static const float | MILS_STRECK2DEG = 0.05714 |
| static const int | MAX_RANDOM = 0x7FFF |
Definition at line 1 of file SCR_Math.c.
|
inlinestaticprotected |
Converts angle to provided unit type from radians
| [in] | radianAngleFrom | |
| [in] | toUnitType |
Definition at line 290 of file SCR_Math.c.
|
inlinestaticprotected |
Converts angle from provided unit type to radians
| [in] | angleFrom | |
| [in] | fromUnitType |
Definition at line 323 of file SCR_Math.c.
Get shortest angle between two angles.
| [in] | a | Start angle in degrees |
| [in] | b | Target angle in degrees |
Definition at line 142 of file SCR_Math.c.
Ensures the angle is in range <-units; +units>
| [in] | angle | angle value |
| [in] | units | Math.PI or 180 |
Definition at line 280 of file SCR_Math.c.
Takes two floats and returns the remainder after division
| [in] | dividend | |
| [in] | divisor |
Definition at line 114 of file SCR_Math.c.
|
inlinestaticprotected |
This is Arma 3's random (syntax 2) formula
| [in] | min | (included) |
| [in] | mid | Bates curve's middle point |
| [in] | max | (included) |
Definition at line 242 of file SCR_Math.c.
Get distance to stop with given deceleration
| [in] | speed | |
| [in] | deceleration |
Definition at line 166 of file SCR_Math.c.
|
inlinestaticprotected |
| [in] | min | (included) |
| [in] | mid | Gaussian curve's middle point |
| [in] | max | (included) |
Definition at line 213 of file SCR_Math.c.
|
inlinestaticprotected |
Get the math random Generator
Definition at line 270 of file SCR_Math.c.
|
inlinestaticprotected |
Get speed necessary to reach given distance with specified deceleration.
| [in] | distance | |
| [in] | deceleration |
Definition at line 182 of file SCR_Math.c.
|
inlinestaticprotected |
Get speed necessary to reach given distance with specified deceleration in specified time.
| [in] | distance | |
| [in] | deceleration | |
| [in] | time |
Definition at line 196 of file SCR_Math.c.
Minimum mask that can cover a provided number
| [in] | x | Positive integer value |
Definition at line 151 of file SCR_Math.c.
Shortest linear interpolation between two angles.
| [in] | a | Start angle in degrees |
| [in] | b | Target angle in degrees |
| [in] | time | Progress in range [0,1] |
Definition at line 128 of file SCR_Math.c.
Returns a random float number between min [inclusive] and max [exclusive]. Will run checks to make sure the values are valid for Math.RandomFloat, and fix them if not correct
| [in] | min | Minimum Value |
| [in] | max | Maximum Value |
Definition at line 18 of file SCR_Math.c.
Returns a random float number between min [inclusive] and max [inclusive]. Will run checks to make sure the values are valid for Math.RandomFloatInclusive, and fix them if not correct
| [in] | min | Minimum Value |
| [in] | max | Maximum Value |
Definition at line 34 of file SCR_Math.c.
Returns random number with Gauss/Normal distribution (https://en.wikipedia.org/wiki/Normal_distribution)
| [in] | min | included |
| [in] | mid | can be outside min..max range |
| [in] | max | included |
Definition at line 50 of file SCR_Math.c.
Returns a random int number between min [inclusive] and max [exclusive]. Will run checks to make sure the values are valid for Math.RandomInt, and fix them if not correct
| [in] | min | Minimum Value |
| [in] | max | Maximum Value |
Definition at line 79 of file SCR_Math.c.
Returns a random int number between min [inclusive] and max [inclusive]. Will run checks to make sure the values are valid for Math.RandomIntInclusive, and fix them if not correct
| [in] | min | Minimum Value |
| [in] | max | Maximum Value |
Definition at line 95 of file SCR_Math.c.
|
staticprotected |
Definition at line 10 of file SCR_Math.c.
|
staticprotected |
Definition at line 6 of file SCR_Math.c.
|
staticprotected |
Definition at line 8 of file SCR_Math.c.
|
staticprotected |
Definition at line 7 of file SCR_Math.c.
|
staticprotected |
Definition at line 4 of file SCR_Math.c.