public class TrigMath extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DEG_TO_RAD |
static double |
HALF_DEG_TO_RAD |
static double |
HALF_PI |
static double |
HALF_SQRT_OF_TWO |
static double |
PI |
static double |
QUARTER_PI |
static double |
RAD_TO_DEG |
static double |
SQRT_OF_TWO |
static double |
SQUARED_PI |
static double |
THREE_PI_HALVES |
static double |
TWO_PI |
| Modifier and Type | Method and Description |
|---|---|
static double |
acos(double value)
Calculates the arc cosine of the value specified
Returns NaN if the input value is outside the cosine range |
static double |
acot(double value)
Calculates the arc cotangent of the value specified
Returns NaN if the input value is outside the cotangent range |
static double |
acsc(double value)
Calculates the arc cosecant of the value specified
Returns NaN if the input value is outside the cosecant range |
static double |
asec(double value)
Calculates the arc secant of the value specified
Returns NaN if the input value is outside the secant range |
static double |
asin(double value)
Calculates the arc sine of the value specified
Returns NaN if the input value is outside the sine range |
static double |
atan(double value)
Calculates the arc tangent of the value specified
|
static double |
atan2(double y,
double x)
Computes the phase theta by computing an arc tangent of y/x
Gets the yaw rotation component in radians when looking into the direction specified |
static float |
cos(double angle)
Cosine calculation using a table.
|
static float |
cot(double angle)
Cotangent calculations using a table.
cos(angle) / sin(angle) No interpolation is performed: Accuracy is up to the 6th decimal place |
static float |
csc(double angle)
Cosecant calculations using a table.
1 / sin(angle) No interpolation is performed: Accuracy is up to the 6th decimal place |
static float |
sec(double angle)
Secant calculations using a table:
1 / cos(angle) No interpolation is performed: Accuracy is up to the 6th decimal place |
static float |
sin(double angle)
Sine calculation using a table.
|
static float |
tan(double angle)
Tangent calculations using a table.
sin(angle) / cos(angle) No interpolation is performed: Accuracy is up to the 6th decimal place |
public static final double PI
public static final double SQUARED_PI
public static final double HALF_PI
public static final double QUARTER_PI
public static final double TWO_PI
public static final double THREE_PI_HALVES
public static final double DEG_TO_RAD
public static final double HALF_DEG_TO_RAD
public static final double RAD_TO_DEG
public static final double SQRT_OF_TWO
public static final double HALF_SQRT_OF_TWO
public static float sin(double angle)
angle - the angle in radianspublic static float cos(double angle)
angle - the angle in radianspublic static float tan(double angle)
angle - in radianspublic static float csc(double angle)
angle - the angle in radianspublic static float sec(double angle)
angle - the angle in radianspublic static float cot(double angle)
angle - in radianspublic static double asin(double value)
value - of the sinepublic static double acos(double value)
value - of the cosinepublic static double atan(double value)
value - of the tangentpublic static double atan2(double y,
double x)
y - directionx - directionpublic static double acsc(double value)
value - of the cosecantpublic static double asec(double value)
value - of the secantpublic static double acot(double value)
value - of the cotangentCopyright © 2013–2016 Flow Powered. All rights reserved.