Modifier and Type | Method and Description |
---|---|
static double |
atan(double z)
Returns the arc tangent of a value.
|
static double |
atan2(double y,
double x)
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
|
static double |
cos(double radians)
Get the cosine of an angle.
|
static double |
sin(double radians)
Get the sine of an angle.
|
public static double sin(double radians)
Originally written by JeffK, and taken from the Slick2D game library.
radians
- The angle, in radians.radians
.public static double cos(double radians)
Originally written by JeffK, and taken from the Slick2D game library.
radians
- The angle, in radians.radians
.public static double atan(double z)
Originally written by Nic Taylor, and taken from this page.
z
- The value to calculate the arc tangent of.z
, in radians.public static double atan2(double y, double x)
Originally written by Nic Taylor, further modified by imuli, and taken from this page.
y
- The ordinate coordinate.x
- The abscissa coordinate.