public class TrigDegrees
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static double |
acosDeg(double x) |
Arc cosine.
|
static double |
asinDeg(double x) |
Arc sine.
|
static double |
atan2Deg(double y,
double x) |
Converts rectangular coordinates (
x ,y )
to polar (r ,theta ). |
static double |
atanDeg(double x) |
Arc tangent.
|
static double |
cosDeg(double theta) |
Cosine of an angle.
|
static double |
sinDeg(double theta) |
Sine of an angle.
|
static double |
tanDeg(double theta) |
Tangent of an angle.
|
public static double sinDeg(double theta)
theta
- an angle, in degreespublic static double cosDeg(double theta)
theta
- an angle, in degreespublic static double tanDeg(double theta)
theta
- an angle, in degreespublic static double asinDeg(double x)
x
- the value whose arc sine is to be returned.public static double acosDeg(double x)
x
- the value whose arc cosine is to be returned.public static double atanDeg(double x)
x
- the value whose arc tangent is to be returned.public static double atan2Deg(double y, double x)
x
,y
)
to polar (r
,theta
).
This method computes the phase
theta
by computing an arc tangent
of y/x
in the range of -180 to 180.y
- the ordinate coordinatex
- the abscissa coordinatetheta
component in degrees of the point
(r
,theta
)
in polar coordinates that corresponds to the point
(x
,y
) in Cartesian coordinates.Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.