mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 08:07:51 +00:00
optimized tan
This commit is contained in:
1 parent
3f9f2bdce4
commit
b3ef4ac79c
2 files changed
+5
-1
No files matched your search
@@ -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