mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-01 23:47:50 +00:00
Fix up commit
This commit is contained in:
parent
6244ffca63
commit
2c45ba91aa
@ -35,13 +35,6 @@ public final class MathUtil {
|
||||
sin = new double[SIN_COUNT];
|
||||
cos = new double[SIN_COUNT];
|
||||
|
||||
static {
|
||||
sinTable = new long[lookupTableSizeWithMargin];
|
||||
for(int i = 0; i < lookupTableSizeWithMargin; i++) {
|
||||
double d = i * tauOverLookupSize;
|
||||
sinTable[i] = Double.doubleToRawLongBits(StrictMath.sin(d));
|
||||
}
|
||||
|
||||
// Four cardinal directions (credits: Nate)
|
||||
for(int i = 0; i < 360; i += 90) {
|
||||
sin[(int) (i * degToIndex) & SIN_MASK] = Math.sin(i * Math.PI / 180.0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user