function distance(vector1, vector2) {
  var squareSum = 0;
  squareSum += (vector1.x - vector2.x) * (vector1.x - vector2.x);
  squareSum += (vector1.y - vector2.y) * (vector1.y - vector2.y);
  squareSum += (vector1.z - vector2.z) * (vector1.z - vector2.z);
  return Math.sqrt(squareSum);
}
/**
 * Return distance between two vectors.
 * @public
 */
Return distance between two vectors.
@public
Return distance between two vectors . @public
function distance(vector1, vector2) {
  var squareSum = 0;
  squareSum += (vector1.x - vector2.x) * (vector1.x - vector2.x);
  squareSum += (vector1.y - vector2.y) * (vector1.y - vector2.y);
  squareSum += (vector1.z - vector2.z) * (vector1.z - vector2.z);
  return Math.sqrt(squareSum);
}
function distance ( vector1 , vector2 ) { var squareSum = 0 ; squareSum += ( vector1 . x - vector2 . x ) * ( vector1 . x - vector2 . x ) ; squareSum += ( vector1 . y - vector2 . y ) * ( vector1 . y - vector2 . y ) ; squareSum += ( vector1 . z - vector2 . z ) * ( vector1 . z - vector2 . z ) ; return Math . sqrt ( squareSum ) ; }
Return distance between two vectors.
Return distance between two vectors .