if (translate_line.side_of(next_corner) == PlaSide.ON_THE_LEFT)
{
max_translate_dist = -max_translate_dist;
}
PlaLineInt[] check_lines = new PlaLineInt[3];
<BUG>check_lines[0] = p_line_arr[p_no];

check_lines[2] = p_line_arr[p_no + 1];
</BUG>
double translate_dist = max_translate_dist;

if (translate_line.side_of(next_corner) == PlaSide.ON_THE_LEFT)
{
max_translate_dist = -max_translate_dist;
}
PlaLineInt[] check_lines = new PlaLineInt[3];
check_lines[0] = p_line_arr.get(p_no);
check_lines[2] = p_line_arr.get(p_no + 1);
double translate_dist = max_translate_dist;
