mirror of
https://github.com/apple/pkl.git
synced 2026-04-20 07:21:32 +02:00
Add math.atan2 (#819)
This commit is contained in:
@@ -299,6 +299,28 @@ public final class MathNodes {
|
||||
}
|
||||
}
|
||||
|
||||
public abstract static class atan2 extends ExternalMethod2Node {
|
||||
@Specialization
|
||||
protected double eval(VmTyped self, long x, long y) {
|
||||
return StrictMath.atan2(x, y);
|
||||
}
|
||||
|
||||
@Specialization
|
||||
protected double eval(VmTyped self, long x, double y) {
|
||||
return StrictMath.atan2(x, y);
|
||||
}
|
||||
|
||||
@Specialization
|
||||
protected double eval(VmTyped self, double x, double y) {
|
||||
return StrictMath.atan2(x, y);
|
||||
}
|
||||
|
||||
@Specialization
|
||||
protected double eval(VmTyped self, double x, long y) {
|
||||
return StrictMath.atan2(x, y);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract static class gcd extends ExternalMethod2Node {
|
||||
@TruffleBoundary
|
||||
@Specialization
|
||||
|
||||
Reference in New Issue
Block a user