Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / JU / P3.js
1 Clazz.declarePackage ("JU");
2 Clazz.load (["JU.T3"], "JU.P3", null, function () {
3 c$ = Clazz.declareType (JU, "P3", JU.T3);
4 c$.newP = Clazz.defineMethod (c$, "newP", 
5 function (t) {
6 var p =  new JU.P3 ();
7 p.x = t.x;
8 p.y = t.y;
9 p.z = t.z;
10 return p;
11 }, "JU.T3");
12 c$.getUnlikely = Clazz.defineMethod (c$, "getUnlikely", 
13 function () {
14 return (JU.P3.unlikely == null ? JU.P3.unlikely = JU.P3.new3 (3.141592653589793, 2.718281828459045, (8.539734222673566)) : JU.P3.unlikely);
15 });
16 c$.new3 = Clazz.defineMethod (c$, "new3", 
17 function (x, y, z) {
18 var p =  new JU.P3 ();
19 p.x = x;
20 p.y = y;
21 p.z = z;
22 return p;
23 }, "~N,~N,~N");
24 Clazz.defineStatics (c$,
25 "unlikely", null);
26 });