Class FieldSinCos<T>

  • Type Parameters:
    T - the type of the field elements

    public class FieldSinCos<T>
    extends Object
    Holder for both sin and cosine values.

    This class is a simple container, it does not provide any computational method.

    Since:
    1.4
    See Also:
    FastMath.sinCos(org.hipparchus.RealFieldElement)
    • Constructor Detail

      • FieldSinCos

        public FieldSinCos​(T sin,
                           T cos)
        Simple constructor.
        Parameters:
        sin - value of the sine
        cos - value of the cosine
    • Method Detail

      • sin

        public T sin()
        Get the value of the sine.
        Returns:
        value of the sine
      • cos

        public T cos()
        Get the value of the cosine.
        Returns:
        value of the cosine