Class TrigonometryExpressions
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.TrigonometryExpressions
-
public final class TrigonometryExpressions extends Object
Defines helper methods for the trigonometry expressions
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Expression
acos(Expression value)
Returns the inverse cosine (arc cosine) of a value in radians.static Expression
acosh(Expression value)
Returns the inverse hyperbolic cosine (hyperbolic arc cosine) of a value in radians.static Expression
asin(Expression value)
Returns the inverse sin (arc sine) of a value in radians.static Expression
asinh(Expression value)
Returns the inverse hyperbolic sine (hyperbolic arc sine) of a value in radians.static Expression
atan(Expression value)
Returns the inverse tangent (arc tangent) of a value in radians.static Expression
atan2(Expression yValue, Expression 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.static Expression
atanh(Expression value)
Returns the inverse hyperbolic tangent (hyperbolic arc tangent) of a value in radians.static Expression
cos(Expression value)
Returns the cosine of a value that is measured in radians.static Expression
degreesToRadians(Expression value)
Converts a value from degrees to radians.static Expression
radiansToDegrees(Expression value)
Converts a value from radians to degrees.static Expression
sin(Expression value)
Returns the sine of a value that is measured in radians.static Expression
tan(Expression value)
Returns the tangent of a value that is measured in radians.
-
-
-
Method Detail
-
acos
public static Expression acos(Expression value)
Returns the inverse cosine (arc cosine) of a value in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $acos
-
acosh
public static Expression acosh(Expression value)
Returns the inverse hyperbolic cosine (hyperbolic arc cosine) of a value in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $acosh
-
asin
public static Expression asin(Expression value)
Returns the inverse sin (arc sine) of a value in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $asin
-
asinh
public static Expression asinh(Expression value)
Returns the inverse hyperbolic sine (hyperbolic arc sine) of a value in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $asinh
-
atan
public static Expression atan(Expression value)
Returns the inverse tangent (arc tangent) of a value in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $atan
-
atan2
public static Expression atan2(Expression yValue, Expression 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 valuexValue
- the x value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $atan2
-
atanh
public static Expression atanh(Expression value)
Returns the inverse hyperbolic tangent (hyperbolic arc tangent) of a value in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $atanh
-
cos
public static Expression cos(Expression value)
Returns the cosine of a value that is measured in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $cos
-
degreesToRadians
public static Expression degreesToRadians(Expression value)
Converts a value from degrees to radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $degreesToRadians
-
radiansToDegrees
public static Expression radiansToDegrees(Expression value)
Converts a value from radians to degrees.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $radiansToDegrees
-
sin
public static Expression sin(Expression value)
Returns the sine of a value that is measured in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $sin
-
tan
public static Expression tan(Expression value)
Returns the tangent of a value that is measured in radians.- Parameters:
value
- the value- Returns:
- the new expression
- MongoDB documentation
- Aggregration Expression: $tan
-
-