Index Documentation

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
bool

easeInQuad()

public static easeInQuad(float $n) : float
Parameters
$n : float
Return values
float

easeOutQuad()

public static easeOutQuad(float $n) : float
Parameters
$n : float
Return values
float

weighted()

public static weighted(float $num1, float $num2, float $weight) : float
Parameters
$num1 : float
$num2 : float
$weight : float
Return values
float

        
On this page

Search results