Closes Anuken/Mindustry-Suggestions/issues/4456

This commit is contained in:
Anuken
2023-06-02 11:56:08 -04:00
parent 2f675a3b75
commit 4dd414c22f
5 changed files with 15 additions and 6 deletions

View File

@@ -32,6 +32,7 @@ public enum LogicOp{
max("max", true, Math::max),
min("min", true, Math::min),
angle("angle", true, (x, y) -> Angles.angle((float)x, (float)y)),
angleDiff("anglediff", true, (x, y) -> Angles.angleDist((float)x, (float)y)),
len("len", true, (x, y) -> Mathf.dst((float)x, (float)y)),
noise("noise", true, (x, y) -> Simplex.raw2d(0, x, y)),
abs("abs", a -> Math.abs(a)), //not a method reference because it fails to compile for some reason