Magic

Magic

190k Downloads

The function select(v,x,y,z) problem

Clexus opened this issue ยท 3 comments

commented

select(v,x,y,z): If v < -1, return x, if v = 0 return y, if v > 0 return z
are you sure it's not "if v <0" but "if v < -1"?

commented

It is "if < 0" - where do you see "< -1", do I have it wrong in the docs somewhere?

https://github.com/elBukkit/EffectLib/blob/d112c9bc09c0bff5db0945bd8770d3444dbd00ba/src/main/java/de/slikey/effectlib/math/EquationTransform.java#L99

                    if (args[0] < 0) return args[1];
                    else if (args[0] == 0) return args[2];
                    return args[3];
commented

Thank you, I fixed the wiki :)