mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-24 10:17:39 +00:00
Added a swap function to the expression parser.
This commit is contained in:
parent
255e342353
commit
a6f0a48f84
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user