XNumber
in package
FinalYes
Provides various helper methods for numbers.
Table of Contents
Methods
- almostEquals() : bool
- easeInQuad() : float
- easeOutQuad() : float
- weighted() : float
Methods
almostEquals()
public
static almostEquals(float $value1, float $value2) : bool
Parameters
- $value1 : float
- $value2 : float
Return values
booleaseInQuad()
public
static easeInQuad(float $n) : float
Parameters
- $n : float
Return values
floateaseOutQuad()
public
static easeOutQuad(float $n) : float
Parameters
- $n : float
Return values
floatweighted()
public
static weighted(float $num1, float $num2, float $weight) : float
Parameters
- $num1 : float
- $num2 : float
- $weight : float