public int right_x_value(int p_y){
  int result=Math.min(oct_rx,oct_urx - p_y);
  return Math.min(result,oct_lrx + p_y);
}

public int right_x_value ( int p_y ) { int result = Math . min ( oct_rx , oct_urx - p_y ) ; return Math . min ( result , oct_lrx + p_y ) ; }
computes the x value of the right boundary of this octagon at p_y
