Android Utililty Methods Trigonometric Functions

List of utility methods to do Trigonometric Functions

Description

The list of methods to do Trigonometric Functions are organized into topic(s).

Method

floatarctan(float opp, float adj)
Get the desired angle of ARCTAN from the given opp and adj
if (adj < 0.0)
    return -(float) (Math.atan(opp / adj) * TO_DEGREES);
else
    return -(float) (Math.atan(opp / adj) * TO_DEGREES) + 180;
floatarctan(float value)
arctan
return -(float) (Math.atan(value) * TO_DEGREES) + 180;
floatcos(float degree)
Return the value of cos(degree)
if (COSINE == null)
    initialise();
int deg = (int) constrainAngle(degree);
return COSINE[deg];
floatcosf(float degree)
Return the value of cos(degree)
return FloatMath.cos(constrainAngle(degree));
floatcosr(float radians)
Return the value of cos(radians)
if (COSINE == null)
    initialise();
return COSINE[(int) constrainAngle(radians * TO_DEGREES)];
floatsin(float degree)
Return the value of sin(degree)
if (SINE == null)
    initialise();
int deg = (int) constrainAngle(degree);
return SINE[deg];
floatsinf(float degree)
Return the value of sin(degree)
return FloatMath.sin(constrainAngle(degree));
floatsinr(float radians)
Return the value of sin(radians)
if (SINE == null)
    initialise();
return SINE[(int) constrainAngle(radians * TO_DEGREES)];
floattan(float degree)
Return the value of tan(degree)
if (TANGENT == null)
    initialise();
return TANGENT[(int) constrainAngle(degree)];
floattanf(float degree)
Return the value of tan(degree)
return (float) Math.tan(constrainAngle(degree));