Clazz.declarePackage ("J.util");
Clazz.load (["J.util.Tuple3f"], "J.util.P3", null, function () {
c$ = Clazz.declareType (J.util, "P3", J.util.Tuple3f);
c$.newP = $_M(c$, "newP", 
function (t) {
var p =  new J.util.P3 ();
p.x = t.x;
p.y = t.y;
p.z = t.z;
return p;
}, "J.util.Tuple3f");
c$.new3 = $_M(c$, "new3", 
function (x, y, z) {
var p =  new J.util.P3 ();
p.x = x;
p.y = y;
p.z = z;
return p;
}, "~N,~N,~N");
$_M(c$, "distanceSquared", 
function (p1) {
var dx = this.x - p1.x;
var dy = this.y - p1.y;
var dz = this.z - p1.z;
return (dx * dx + dy * dy + dz * dz);
}, "J.util.P3");
$_M(c$, "distance", 
function (p1) {
return Math.sqrt (this.distanceSquared (p1));
}, "J.util.P3");
});
