Class TrigonometryExpressions

java.lang.Object
dev.morphia.aggregation.expressions.TrigonometryExpressions

public final class TrigonometryExpressions extends Object
Defines helper methods for the trigonometry expressions
  • Method Details

    • acos

      public static Expression acos(Object value)
      Returns the inverse cosine (arc cosine) of a value in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $acos
    • acosh

      public static Expression acosh(Object value)
      Returns the inverse hyperbolic cosine (hyperbolic arc cosine) of a value in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $acosh
    • asin

      public static Expression asin(Object value)
      Returns the inverse sin (arc sine) of a value in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $asin
    • asinh

      public static Expression asinh(Object value)
      Returns the inverse hyperbolic sine (hyperbolic arc sine) of a value in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $asinh
    • atan

      public static Expression atan(Object value)
      Returns the inverse tangent (arc tangent) of a value in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $atan
    • atan2

      public static Expression atan2(Object yValue, Object xValue)
      Returns the inverse tangent (arc tangent) of y / x in radians, where y and x are the first and second values passed to the expression respectively.
      Parameters:
      yValue - the y value
      xValue - the x value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $atan2
    • atanh

      public static Expression atanh(Object value)
      Returns the inverse hyperbolic tangent (hyperbolic arc tangent) of a value in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $atanh
    • cos

      public static Expression cos(Object value)
      Returns the cosine of a value that is measured in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $cos
    • cosh

      public static Expression cosh(Object value)
      Returns the hyperbolic cosine of a value that is measured in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since:
      2.2
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $cosh
    • degreesToRadians

      public static Expression degreesToRadians(Object value)
      Converts a value from degrees to radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $degreesToRadians
    • radiansToDegrees

      public static Expression radiansToDegrees(Object value)
      Converts a value from radians to degrees.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $radiansToDegrees
    • sin

      public static Expression sin(Object value)
      Returns the sine of a value that is measured in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $sin
    • sinh

      public static Expression sinh(Object value)
      Returns the hyperbolic sine of a value that is measured in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since:
      2.2
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $sinh
    • tan

      public static Expression tan(Object value)
      Returns the tangent of a value that is measured in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $tan
    • tanh

      public static Expression tanh(Object value)
      Returns the hyperbolic tangent of a value that is measured in radians.
      Parameters:
      value - the value
      Returns:
      the new expression
      Since:
      2.2
      Since server release
      4.2
      MongoDB documentation
      Aggregration Expression: $tanh