public double distance_weighted(PlaPointFloat p_other,double p_horizontal_weight,double p_vertical_weight){
  double delta_x=v_x - p_other.v_x;
  double delta_y=v_y - p_other.v_y;
  delta_x*=p_horizontal_weight;
  delta_y*=p_vertical_weight;
  double result=Math.sqrt(delta_x * delta_x + delta_y * delta_y);
  return result;
}

public double distance_weighted ( PlaPointFloat p_other , double p_horizontal_weight , double p_vertical_weight ) { double delta_x = v_x - p_other . v_x ; double delta_y = v_y - p_other . v_y ; delta_x *= p_horizontal_weight ; delta_y *= p_vertical_weight ; double result = Math . sqrt ( delta_x * delta_x + delta_y * delta_y ) ; return result ; }
computes the weighted distance to p_other .
