PIXI.utils.sign

sign(n: number) → {number}

Returns sign of number

Parameters:
Name Type Description
n number

the number to check the sign of

Returns:
Type Description
number

0 if n is 0, -1 if n is negative, 1 if n is positive

Powered by webdoc!