LUCENE-9238: Do not use Math#toRadians() in branch_8x

This commit is contained in:
iverase 2020-02-21 17:40:03 +01:00
parent a79a90dcd3
commit 799ab23bc5
1 changed files with 2 additions and 2 deletions

View File

@ -155,8 +155,8 @@ public class ShapeTestUtil {
len = StrictMath.min(len, StrictMath.min(maxX, maxY));
float x = (float)(centerX + len * Math.cos(Math.toRadians(angle)));
float y = (float)(centerY + len * Math.sin(Math.toRadians(angle)));
float x = (float)(centerX + len * Math.cos(StrictMath.toRadians(angle)));
float y = (float)(centerY + len * Math.sin(StrictMath.toRadians(angle)));
xList.add(x);
yList.add(y);