◆ ceilFloat()
- Parameters
-
- Returns
- int
48 return $n >= $i ? $i : $i - 1;
◆ clamp()
static clamp |
( |
|
$value, |
|
|
|
$low, |
|
|
|
$high |
|
) |
| |
|
static |
- Parameters
-
- Returns
- mixed
59 return min($high, max($low, $value));
◆ floorFloat()
- Parameters
-
- Returns
- int
38 return $n >= $i ? $i : $i - 1;
◆ solveQuadratic()
static solveQuadratic |
( |
|
$a, |
|
|
|
$b, |
|
|
|
$c |
|
) |
| |
|
static |
- Parameters
-
- Returns
- array
70 $x[0] = (-$b + sqrt($b ** 2 - 4 * $a * $c)) / (2 * $a);
71 $x[1] = (-$b - sqrt($b ** 2 - 4 * $a * $c)) / (2 * $a);
The documentation for this class was generated from the following file:
- src/pocketmine/math/Math.php