Package org.hipparchus.util
Class SinCos
- java.lang.Object
-
- org.hipparchus.util.SinCos
-
public class SinCos extends Object
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:
FastMath.sinCos(double)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecos()Get the value of the cosine.static SinCosdifference(SinCos scAlpha, SinCos scBeta)Compute sine and cosine of angles difference.doublesin()Get the value of the sine.static SinCossum(SinCos scAlpha, SinCos scBeta)Compute sine and cosine of angles sum.
-
-
-
Method Detail
-
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
public static SinCos sum(SinCos scAlpha, SinCos scBeta)
Compute sine and cosine of angles sum.- Parameters:
scAlpha- \((\sin \alpha, \cos \alpha)\)scBeta- \((\sin \beta, \cos \beta)\)- Returns:
- \((\sin \alpha+\beta, \cos \alpha+\beta)\)
- Since:
- 1.8
-
-