Package org.hipparchus.util
Class SinCos
java.lang.Object
org.hipparchus.util.SinCos
Holder for both sine and cosine values.
This class is a simple container, it does not provide any computational method.
- Since:
- 1.3
- See Also:
-
Method Details
-
sin
public double sin()Get the value of the sine.- Returns:
- value of the sine
-
cos
public double cos()Get the value of the cosine.- Returns:
- value of the cosine
-
sum
Compute sine and cosine of angles sum.- Parameters:
scAlpha
-scBeta
-- Returns:
- Since:
- 1.8
-
difference
Compute sine and cosine of angles difference.- Parameters:
scAlpha
-scBeta
-- Returns:
- Since:
- 1.8
-