RSDK math functions. More...
Public Member Functions | |
| integer | GetRandSeed () |
| Gets the engine's random seed value. | |
| void | SetRandSeed (integer key) |
| Sets the engine's random seed value. | |
| integer | RandomInteger (integer min, integer max) |
| Gets a random number between specified minimum integer and a specified maximum integer. | |
| integer | RandomIntegerSeeded (integer min, integer max, integer seed) |
| Gets a random number between specified minimum integer and a specified maximum integer based off of a given seed. | |
| void | ClearTrigLookupTables () |
| Clears the engine's angle lookup tables. | |
| void | CalculateTrigAngles () |
| Sets the engine's angle lookup tables. | |
| integer | Sin1024 (integer angle) |
| Returns the sine of an angle of x based on a max of 1024. | |
| integer | Cos1024 (integer angle) |
| Returns the cosine of an angle of x based on a max of 1024. | |
| integer | Tan1024 (integer angle) |
| Returns the tangent of an angle of x based on a max of 1024. | |
| integer | ASin1024 (integer angle) |
| Returns the arc sine of an angle of x based on a max of 1024. | |
| integer | ACos1024 (integer angle) |
| Returns the arc cosine of an angle of x based on a max of 1024. | |
| integer | Cos512 (integer angle) |
| Returns the cosine of an angle of x based on a max of 512. | |
| integer | Tan512 (integer angle) |
| Returns the tangent of an angle of x based on a max of 512. | |
| integer | ASin512 (integer angle) |
| Returns the arc sine of an angle of x based on a max of 512. | |
| integer | ACos512 (integer angle) |
| Returns the arc cosine of an angle of x based on a max of 512. | |
| integer | Cos256 (integer angle) |
| Returns the cosine of an angle of x based on a max of 256. | |
| integer | Tan256 (integer angle) |
| Returns the tangent of an angle of x based on a max of 256. | |
| integer | ASin256 (integer angle) |
| Returns the arc sine of an angle of x based on a max of 256. | |
| integer | ACos256 (integer angle) |
| Returns the arc cosine of an angle of x based on a max of 256. | |
| integer | ATan2 (decimal x, decimal y) |
| Returns the arc tangent of a position. | |
| integer | RadianToInteger (decimal radian) |
| Gets the integer conversion of a radian, based on 256. | |
| decimal | IntegerToRadian (integer integer) |
| Gets the radian decimal conversion of an integer, based on 256. | |
| integer | ToFixed (number n) |
| Converts a decimal number to its fixed-point equivalent. | |
| decimal | FromFixed (number n) |
| Converts a fixed-point number to its decimal equivalent. | |
RSDK math functions.
| integer RSDK.Math.ACos1024 | ( | integer | angle | ) |
Returns the arc cosine of an angle of x based on a max of 1024.
| angle | Angle to get the arc cosine of. |
| integer RSDK.Math.ACos256 | ( | integer | angle | ) |
Returns the arc cosine of an angle of x based on a max of 256.
| angle | Angle to get the arc cosine of. |
| integer RSDK.Math.ACos512 | ( | integer | angle | ) |
Returns the arc cosine of an angle of x based on a max of 512.
| angle | Angle to get the arc cosine of. |
| integer RSDK.Math.ASin1024 | ( | integer | angle | ) |
Returns the arc sine of an angle of x based on a max of 1024.
| angle | Angle to get the arc sine of. |
| integer RSDK.Math.ASin256 | ( | integer | angle | ) |
Returns the arc sine of an angle of x based on a max of 256.
| angle | Angle to get the arc sine of. |
| integer RSDK.Math.ASin512 | ( | integer | angle | ) |
Returns the arc sine of an angle of x based on a max of 512.
| angle | Angle to get the arc sine of. |
| integer RSDK.Math.ATan2 | ( | decimal | x, |
| decimal | y ) |
Returns the arc tangent of a position.
| x | X value of the position. |
| y | Y value of the position. |
| integer RSDK.Math.Cos1024 | ( | integer | angle | ) |
Returns the cosine of an angle of x based on a max of 1024.
| angle | Angle to get the cosine of. |
| integer RSDK.Math.Cos256 | ( | integer | angle | ) |
Returns the cosine of an angle of x based on a max of 256.
| angle | Angle to get the cosine of. |
| integer RSDK.Math.Cos512 | ( | integer | angle | ) |
Returns the cosine of an angle of x based on a max of 512.
| angle | Angle to get the cosine of. |
| decimal RSDK.Math.FromFixed | ( | number | n | ) |
Converts a fixed-point number to its decimal equivalent.
| n | Number value. |
| integer RSDK.Math.GetRandSeed | ( | ) |
Gets the engine's random seed value.
| decimal RSDK.Math.IntegerToRadian | ( | integer | integer | ) |
Gets the radian decimal conversion of an integer, based on 256.
| integer | Integer value to convert. |
| integer RSDK.Math.RadianToInteger | ( | decimal | radian | ) |
Gets the integer conversion of a radian, based on 256.
| radian | Radian value to convert. |
| integer RSDK.Math.RandomInteger | ( | integer | min, |
| integer | max ) |
Gets a random number between specified minimum integer and a specified maximum integer.
| min | Minimum non-inclusive integer value. |
| max | Maximum non-inclusive integer value. |
| integer RSDK.Math.RandomIntegerSeeded | ( | integer | min, |
| integer | max, | ||
| integer | seed ) |
Gets a random number between specified minimum integer and a specified maximum integer based off of a given seed.
| min | Minimum non-inclusive integer value. |
| max | Maximum non-inclusive integer value. |
| seed | Seed of which to base the number. |
| void RSDK.Math.SetRandSeed | ( | integer | key | ) |
Sets the engine's random seed value.
| key | Value to set the seed to. |
| integer RSDK.Math.Sin1024 | ( | integer | angle | ) |
Returns the sine of an angle of x based on a max of 1024.
| angle | Angle to get the sine of. |
| integer RSDK.Math.Tan1024 | ( | integer | angle | ) |
Returns the tangent of an angle of x based on a max of 1024.
| angle | Angle to get the tangent of. |
| integer RSDK.Math.Tan256 | ( | integer | angle | ) |
Returns the tangent of an angle of x based on a max of 256.
| angle | Angle to get the tangent of. |
| integer RSDK.Math.Tan512 | ( | integer | angle | ) |
Returns the tangent of an angle of x based on a max of 512.
| angle | Angle to get the tangent of. |
| integer RSDK.Math.ToFixed | ( | number | n | ) |
Converts a decimal number to its fixed-point equivalent.
| n | Number value. |