PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\math\Math Class Reference
+ Collaboration diagram for pocketmine\math\Math:

Static Public Member Functions

static ceilFloat ($n)
 
static floorFloat ($n)
 
static solveQuadratic (float $a, float $b, float $c)
 

Detailed Description

Definition at line 31 of file Math.php.

Member Function Documentation

◆ ceilFloat()

static pocketmine\math\Math::ceilFloat (   $n)
static
Parameters
float$n

Definition at line 47 of file Math.php.

◆ floorFloat()

static pocketmine\math\Math::floorFloat (   $n)
static
Parameters
float$n

Definition at line 39 of file Math.php.

◆ solveQuadratic()

static pocketmine\math\Math::solveQuadratic ( float  $a,
float  $b,
float  $c 
)
static

Solves a quadratic equation with the given coefficients and returns an array of up to two solutions.

Returns
float[]

Definition at line 57 of file Math.php.


The documentation for this class was generated from the following file: