mirror of https://github.com/apache/lucene.git
LUCENE-9238: Do not use Math#toRadians() in branch_8x
This commit is contained in:
parent
a79a90dcd3
commit
799ab23bc5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue