question: 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 ) ; }
target:  computes the x value of the right boundary of this Octagon at p_y