mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-09 17:26:07 +00:00
optimized tan
This commit is contained in:
@@ -55,6 +55,10 @@ public final class MathUtil {
|
||||
return cos[(int) (rad * radToIndex) & SIN_MASK];
|
||||
}
|
||||
|
||||
public static double tan(double rad) {
|
||||
return sin(rad)/cos(rad);
|
||||
}
|
||||
|
||||
public static double invSqrt(double x) {
|
||||
double xhalf = 0.5d * x;
|
||||
long i = Double.doubleToLongBits(x);
|
||||
|
||||
Reference in New Issue
Block a user