public float dist(PVector v){
  float dx=x - v.x;
  float dy=y - v.y;
  float dz=z - v.z;
  return (float)Math.sqrt(dx * dx + dy * dy + dz * dz);
}

public float dist ( PVector v ) { float dx = x - v . x ; float dy = y - v . y ; float dz = z - v . z ; return ( float ) Math . sqrt ( dx * dx + dy * dy + dz * dz ) ; }
( begin auto - generated from pvector_dist . xml ) calculates the euclidean distance between two points ( considering a point as a vector object ) . ( end auto - generated )
