BGE/Math
Classes
-
Circle
-
-
Rectangle
-
-
Vector2d
-
Methods
(static) Atan2(y, x) → {float}
Parameters:
Name |
Type |
Description |
y |
float
|
|
x |
float
|
|
- Source:
-
(static) Clamp(number, minVal, maxVal) → {dynamic}
Parameters:
Name |
Type |
Description |
number |
dynamic
|
|
minVal |
dynamic
|
|
maxVal |
dynamic
|
|
- Source:
-
(static) DegreesToRadians(degrees) → {float}
Parameters:
Name |
Type |
Description |
degrees |
float
|
|
- Source:
-
(static) GetAngle(vector1, vector2) → {float}
Parameters:
Name |
Type |
Description |
vector1 |
object
|
|
vector2 |
object
|
|
- Source:
-
(static) IsIntegerEven(number) → {boolean}
Parameters:
Name |
Type |
Description |
number |
integer
|
|
- Source:
-
(static) IsIntegerOdd(number) → {boolean}
Parameters:
Name |
Type |
Description |
number |
integer
|
|
- Source:
-
(static) Max(a, b) → {dynamic}
Parameters:
Name |
Type |
Description |
a |
dynamic
|
|
b |
dynamic
|
|
- Source:
-
(static) Min(a, b) → {dynamic}
Parameters:
Name |
Type |
Description |
a |
dynamic
|
|
b |
dynamic
|
|
- Source:
-
(static) PI() → {float}
- Source:
-
(static) Power(number, pow) → {dynamic}
Parameters:
Name |
Type |
Description |
number |
dynamic
|
|
pow |
integer
|
|
- Source:
-
(static) RadiansToDegrees(radians) → {float}
Parameters:
Name |
Type |
Description |
radians |
float
|
|
- Source:
-
(static) RandomRange(lowest_int, highest_int) → {integer}
Parameters:
Name |
Type |
Description |
lowest_int |
integer
|
|
highest_int |
integer
|
|
- Source:
-
(static) RotateVectorAroundVector(vector1, vector2, radians) → {object}
Parameters:
Name |
Type |
Description |
vector1 |
object
|
|
vector2 |
object
|
|
radians |
float
|
|
- Source:
-
(static) Round(number, decimalsopt) → {float}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
number |
float
|
|
|
|
decimals |
integer
|
<optional>
|
0
|
|
- Source:
-
(static) TotalDistance(vector1, vector2) → {float}
Parameters:
Name |
Type |
Description |
vector1 |
object
|
|
vector2 |
object
|
|
- Source:
-