Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / lang / StrictMath.js
index 5e06012..477bb47 100644 (file)
-Clazz.load(null,"java.lang.StrictMath",["java.lang.Double","$.Float"],function(){\r
-c$=Clazz.declareType(java.lang,"StrictMath");\r
-c$.abs=Clazz.defineMethod(c$,"abs",\r
-function(d){\r
-return Math.abs(d);\r
-},"~N");\r
-c$.acos=Clazz.defineMethod(c$,"acos",\r
-function(d){\r
-return Math.acos(d);\r
-},"~N");\r
-c$.asin=Clazz.defineMethod(c$,"asin",\r
-function(d){\r
-return Math.asin(d);\r
-},"~N");\r
-c$.atan=Clazz.defineMethod(c$,"atan",\r
-function(d){\r
-return Math.atan(d);\r
-},"~N");\r
-c$.atan2=Clazz.defineMethod(c$,"atan2",\r
-function(d1,d2){\r
-return Math.atan2(d1,d2);\r
-},"~N,~N");\r
-c$.ceil=Clazz.defineMethod(c$,"ceil",\r
-function(d){\r
-return Math.ceil(d);\r
-},"~N");\r
-c$.cosh=Clazz.defineMethod(c$,"cosh",\r
-function(d){\r
-return Math.cosh(d);\r
-},"~N");\r
-c$.cos=Clazz.defineMethod(c$,"cos",\r
-function(d){\r
-return Math.cos(d);\r
-},"~N");\r
-c$.exp=Clazz.defineMethod(c$,"exp",\r
-function(d){\r
-return Math.exp(d);\r
-},"~N");\r
-c$.floor=Clazz.defineMethod(c$,"floor",\r
-function(d){\r
-return Math.floor(d);\r
-},"~N");\r
-c$.log=Clazz.defineMethod(c$,"log",\r
-function(d){\r
-return Math.log(d);\r
-},"~N");\r
-c$.log10=Clazz.defineMethod(c$,"log10",\r
-function(d){\r
-return Math.log10(d);\r
-},"~N");\r
-c$.max=Clazz.defineMethod(c$,"max",\r
-function(d1,d2){\r
-return Math.max(d1,d2);\r
-},"~N,~N");\r
-c$.min=Clazz.defineMethod(c$,"min",\r
-function(d1,d2){\r
-return Math.min(d1,d2);\r
-},"~N,~N");\r
-c$.pow=Clazz.defineMethod(c$,"pow",\r
-function(d1,d2){\r
-return Math.pow(d1,d2);\r
-},"~N,~N");\r
-c$.random=Clazz.defineMethod(c$,"random",\r
-function(){\r
-return Math.random();\r
-});\r
-c$.rint=Clazz.defineMethod(c$,"rint",\r
-function(d){\r
-return Math.round(d);\r
-},"~N");\r
-c$.round=Clazz.defineMethod(c$,"round",\r
-function(d){\r
-return Math.round(d);\r
-},"~N");\r
-c$.signum=Clazz.defineMethod(c$,"signum",\r
-function(d){\r
-if(Double.isNaN(d)){\r
-return NaN;\r
-}var sig=d;\r
-if(d>0){\r
-sig=1.0;\r
-}else if(d<0){\r
-sig=-1.0;\r
-}return sig;\r
-},"~N");\r
-c$.signum=Clazz.defineMethod(c$,"signum",\r
-function(f){\r
-if(Float.isNaN(f)){\r
-return NaN;\r
-}var sig=f;\r
-if(f>0){\r
-sig=1.0;\r
-}else if(f<0){\r
-sig=-1.0;\r
-}return sig;\r
-},"~N");\r
-c$.sinh=Clazz.defineMethod(c$,"sinh",\r
-function(d){\r
-return Math.sinh(d);\r
-},"~N");\r
-c$.sin=Clazz.defineMethod(c$,"sin",\r
-function(d){\r
-return Math.sin(d);\r
-},"~N");\r
-c$.sqrt=Clazz.defineMethod(c$,"sqrt",\r
-function(d){\r
-return Math.sqrt(d);\r
-},"~N");\r
-c$.tan=Clazz.defineMethod(c$,"tan",\r
-function(d){\r
-return Math.tan(d);\r
-},"~N");\r
-c$.tanh=Clazz.defineMethod(c$,"tanh",\r
-function(d){\r
-return Math.tanh(d);\r
-},"~N");\r
-c$.toDegrees=Clazz.defineMethod(c$,"toDegrees",\r
-function(angrad){\r
-return angrad*180/3.141592653589793;\r
-},"~N");\r
-c$.toRadians=Clazz.defineMethod(c$,"toRadians",\r
-function(angdeg){\r
-return angdeg/180*3.141592653589793;\r
-},"~N");\r
-Clazz.defineStatics(c$,\r
-"E",2.718281828459045,\r
-"PI",3.141592653589793,\r
-"$random",null);\r
-});\r
+Clazz.load(null,"java.lang.StrictMath",["java.lang.Double","$.Float"],function(){
+c$=Clazz.declareType(java.lang,"StrictMath");
+c$.abs=Clazz.defineMethod(c$,"abs",
+function(d){
+return Math.abs(d);
+},"~N");
+c$.acos=Clazz.defineMethod(c$,"acos",
+function(d){
+return Math.acos(d);
+},"~N");
+c$.asin=Clazz.defineMethod(c$,"asin",
+function(d){
+return Math.asin(d);
+},"~N");
+c$.atan=Clazz.defineMethod(c$,"atan",
+function(d){
+return Math.atan(d);
+},"~N");
+c$.atan2=Clazz.defineMethod(c$,"atan2",
+function(d1,d2){
+return Math.atan2(d1,d2);
+},"~N,~N");
+c$.ceil=Clazz.defineMethod(c$,"ceil",
+function(d){
+return Math.ceil(d);
+},"~N");
+c$.cosh=Clazz.defineMethod(c$,"cosh",
+function(d){
+return Math.cosh(d);
+},"~N");
+c$.cos=Clazz.defineMethod(c$,"cos",
+function(d){
+return Math.cos(d);
+},"~N");
+c$.exp=Clazz.defineMethod(c$,"exp",
+function(d){
+return Math.exp(d);
+},"~N");
+c$.floor=Clazz.defineMethod(c$,"floor",
+function(d){
+return Math.floor(d);
+},"~N");
+c$.log=Clazz.defineMethod(c$,"log",
+function(d){
+return Math.log(d);
+},"~N");
+c$.log10=Clazz.defineMethod(c$,"log10",
+function(d){
+return Math.log10(d);
+},"~N");
+c$.max=Clazz.defineMethod(c$,"max",
+function(d1,d2){
+return Math.max(d1,d2);
+},"~N,~N");
+c$.min=Clazz.defineMethod(c$,"min",
+function(d1,d2){
+return Math.min(d1,d2);
+},"~N,~N");
+c$.pow=Clazz.defineMethod(c$,"pow",
+function(d1,d2){
+return Math.pow(d1,d2);
+},"~N,~N");
+c$.random=Clazz.defineMethod(c$,"random",
+function(){
+return Math.random();
+});
+c$.rint=Clazz.defineMethod(c$,"rint",
+function(d){
+return Math.round(d);
+},"~N");
+c$.round=Clazz.defineMethod(c$,"round",
+function(d){
+return Math.round(d);
+},"~N");
+c$.signum=Clazz.defineMethod(c$,"signum",
+function(d){
+if(Double.isNaN(d)){
+return NaN;
+}var sig=d;
+if(d>0){
+sig=1.0;
+}else if(d<0){
+sig=-1.0;
+}return sig;
+},"~N");
+c$.signum=Clazz.defineMethod(c$,"signum",
+function(f){
+if(Float.isNaN(f)){
+return NaN;
+}var sig=f;
+if(f>0){
+sig=1.0;
+}else if(f<0){
+sig=-1.0;
+}return sig;
+},"~N");
+c$.sinh=Clazz.defineMethod(c$,"sinh",
+function(d){
+return Math.sinh(d);
+},"~N");
+c$.sin=Clazz.defineMethod(c$,"sin",
+function(d){
+return Math.sin(d);
+},"~N");
+c$.sqrt=Clazz.defineMethod(c$,"sqrt",
+function(d){
+return Math.sqrt(d);
+},"~N");
+c$.tan=Clazz.defineMethod(c$,"tan",
+function(d){
+return Math.tan(d);
+},"~N");
+c$.tanh=Clazz.defineMethod(c$,"tanh",
+function(d){
+return Math.tanh(d);
+},"~N");
+c$.toDegrees=Clazz.defineMethod(c$,"toDegrees",
+function(angrad){
+return angrad*180/3.141592653589793;
+},"~N");
+c$.toRadians=Clazz.defineMethod(c$,"toRadians",
+function(angdeg){
+return angdeg/180*3.141592653589793;
+},"~N");
+Clazz.defineStatics(c$,
+"E",2.718281828459045,
+"PI",3.141592653589793,
+"$random",null);
+});