isNull op / Return null for null block sense/NaNs

This commit is contained in:
Anuken
2021-02-08 12:48:39 -05:00
parent 49fe47f1f8
commit 1802aab683
3 changed files with 81 additions and 13 deletions

View File

@ -27,6 +27,7 @@ public enum LogicOp{
xor("xor", (a, b) -> (long)a ^ (long)b),
not("flip", a -> ~(long)(a)),
isNull("isNull", v -> v == 0 ? 1 : 0), //this lambda is not actually used
max("max", Math::max),
min("min", Math::min),
atan2("atan2", (x, y) -> Mathf.atan2((float)x, (float)y) * Mathf.radDeg),