List of utility methods to do tan
double | tan(double a) Returns the trigonometric tangent of an angle. return Math.tan(a);
|
float | tan(final float value) tan final int temp; if (value > 0) { if ((int) value > 360f) { if ((temp = ((int) value - ((int) (value / 360f)) * 360)) != 0) { return TG_TABLE[temp]; } else { return TG_TABLE[360]; } else { return TG_TABLE[(int) (value)]; } else if ((-(int) value) > 360f) { if ((temp = (-((int) value - ((int) (value / 360f)) * 360))) != 0) { return TG_TABLE[temp]; } else { return TG_TABLE[360]; } else { return TG_TABLE[-(int) (value)]; |
float | tan(float angle) tan return (float) Math.tan(angle); |
float | tan(float angle) tan return sin(angle) / cos(angle);
|
float | tan(float angle) tan return (float) Math.tan(angle); |
float | tan(float f) tan return sin(f) / cos(f);
|
int | tan(int f) tan int s, c; s = sin(f); c = cos(f); if (c != 0) return ((int) (((((long) s) << 32) / c) >> 16)); return s < 0 ? -2147483648 : 2147483647; |
double | tan(Number x) tan return Math.tan(x.doubleValue());
|
double | tan(Short a) Tan. return Math.tan(a.doubleValue());
|
double | tanD(double arg) tan D arg = Math.IEEEremainder(arg, 360.0); if (arg / 90.0 == 1.0) return Double.POSITIVE_INFINITY; else if (arg / 90.0 == -1.0) return Double.NEGATIVE_INFINITY; else return Math.tan(Math.toRadians(arg)); |