int py = lst.get(i + 1);
int x = lst.get(i + 2);
int y = lst.get(i + 3);
float angleRad = (float) Math.atan2(y - py, x - px);
float angle = (float) (angleRad * 180 / Math.PI) + 90f;
<BUG>float distSegment = FloatMath.sqrt((y - py) * (y - py) + (x - px) * (x - px));
</BUG>
if(distSegment == 0) {
continue;
}

int py = lst.get(i + 1);
int x = lst.get(i + 2);
int y = lst.get(i + 3);
float angleRad = (float) Math.atan2(y - py, x - px);
float angle = (float) (angleRad * 180 / Math.PI) + 90f;
float distSegment = (float) Math.sqrt((y - py) * (y - py) + (x - px) * (x - px));
if(distSegment == 0) {
continue;
}
