Renderer/src/main/java/electrosphere/script/utils/ScriptMathInterface.java
austin cc60818e35
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
js chunkgen + fixes + scriptengine work
2024-11-09 20:04:44 -05:00

22 lines
415 B
Java

package electrosphere.script.utils;
import org.graalvm.polyglot.HostAccess.Export;
/**
* Script access to specific math functions
*/
public class ScriptMathInterface {
/**
* Power function
* @param val1 The number
* @param val2 The exponent
* @return The power
*/
@Export
public static double pow(double val1, double val2){
return Math.pow(val1,val2);
}
}