B2G/gecko/browser/devtools/tilt/TiltWorkerPicker.js
// calculates the squared distance between two points
calculates the squared distance between two points
calculates the squared distance between two points
function dsq(p1, p2) {
    let xd = p2[0] - p1[0];
    let yd = p2[1] - p1[1];
    let zd = p2[2] - p1[2];
    return xd * xd + yd * yd + zd * zd;
  }
function dsq ( p1 , p2 ) { let xd = p2 [ 0 ] - p1 [ 0 ] ; let yd = p2 [ 1 ] - p1 [ 1 ] ; let zd = p2 [ 2 ] - p1 [ 2 ] ; return xd * xd + yd * yd + zd * zd ; }
calculates the squared distance between two points
calculates the squared distance between two points