Arma Reforger Script API
|
Static Public Member Functions | |
static float | fmod (float dividend, float divisor) |
Takes two floats and returns the remainder after division. | |
static float | LerpAngle (float a, float b, float t) |
Shortest linear interpolation between two angles. | |
static float | DeltaAngle (float a, float b) |
Get shortest angle between two angles. | |
static int | IntegerMask (int x) |
Minimum mask that can cover a provided number. | |
static float | GetDistanceToStop (float speed, float deceleration) |
Get distance to stop with given deceleration. | |
static float | GetSpeedToReachDistance (float distance, float deceleration) |
Get speed necessary to reach given distance with specified deceleration. | |
static float | GetSpeedToReachDistanceInTime (float distance, float deceleration, float time) |
Get speed necessary to reach given distance with specified deceleration in specified time. | |
static float | GetGaussianDistributionRandom (float min, float mid, float max) |
static float | GetBatesDistributionRandom (float min, float mid, float max) |
This is Arma 3's random (syntax 2) formula. | |
static RandomGenerator | GetMathRandomGenerator () |
Get the math random Generator. | |
static float | FixAngle (float angle, float units=Math.PI) |
Ensures the angle is in range <-units; +units> | |
static float | ConvertFromRadians (float radianAngleFrom, SCR_EOpticsAngleUnits toUnitType) |
Converts angle to provided unit type from radians. | |
static float | ConvertToRadians (float angleFrom, SCR_EOpticsAngleUnits fromUnitType) |
Converts angle from provided unit type to radians. | |
Static Public Attributes | |
static const float | MILS_NATO2DEG = 0.05625 |
static const float | MILS_WP2DEG = 0.06 |
static const float | MILS_STRECK2DEG = 0.05714 |
Static Protected Attributes | |
const static ref RandomGenerator | RANDOM_GENERATOR = new RandomGenerator() |
|
static |
Converts angle to provided unit type from radians.
[in] | radianAngleFrom | |
[in] | toUnitType |
|
static |
Converts angle from provided unit type to radians.
[in] | angleFrom | |
[in] | fromUnitType |
|
static |
Get shortest angle between two angles.
[in] | a | Start angle in degrees |
[in] | b | Target angle in degrees |
|
static |
Ensures the angle is in range <-units; +units>
[in] | angle | angle value |
[in] | units | Math.PI or 180 |
|
static |
Takes two floats and returns the remainder after division.
[in] | dividend | |
[in] | divisor |
|
static |
This is Arma 3's random (syntax 2) formula.
[in] | min | (included) |
[in] | mid | Bates curve's middle point |
[in] | max | (included) |
|
static |
Get distance to stop with given deceleration.
[in] | speed | |
[in] | deceleration |
|
static |
[in] | min | (included) |
[in] | mid | Gaussian curve's middle point |
[in] | max | (included) |
|
static |
Get the math random Generator.
|
static |
Get speed necessary to reach given distance with specified deceleration.
[in] | distance | |
[in] | deceleration |
|
static |
Get speed necessary to reach given distance with specified deceleration in specified time.
[in] | distance | |
[in] | deceleration | |
[in] | time |
|
static |
Minimum mask that can cover a provided number.
[in] | x | Positive integer value |
|
static |
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] |
|
static |
|
static |
|
static |
|
staticprotected |