mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 22:44:03 +00:00
Added a swap function to the expression parser.
This commit is contained in:
@@ -257,7 +257,16 @@ public final class Functions {
|
|||||||
x.assign(xOld * cosF - yOld * sinF);
|
x.assign(xOld * cosF - yOld * sinF);
|
||||||
y.assign(xOld * sinF + yOld * cosF);
|
y.assign(xOld * sinF + yOld * cosF);
|
||||||
|
|
||||||
return 0;
|
return 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final double swap(LValue x, LValue y) throws EvaluationException {
|
||||||
|
final double tmp = x.getValue();
|
||||||
|
|
||||||
|
x.assign(y.getValue());
|
||||||
|
y.assign(tmp);
|
||||||
|
|
||||||
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user