Class TrigonometryExpressions
java.lang.Object
dev.morphia.aggregation.expressions.TrigonometryExpressions
Defines helper methods for the trigonometry expressions
-
Method Summary
Modifier and TypeMethodDescriptionstatic Expression
Returns the inverse cosine (arc cosine) of a value in radians.static Expression
Returns the inverse hyperbolic cosine (hyperbolic arc cosine) of a value in radians.static Expression
Returns the inverse sin (arc sine) of a value in radians.static Expression
Returns the inverse hyperbolic sine (hyperbolic arc sine) of a value in radians.static Expression
Returns the inverse tangent (arc tangent) of a value in radians.static Expression
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
Returns the inverse hyperbolic tangent (hyperbolic arc tangent) of a value in radians.static Expression
Returns the cosine of a value that is measured in radians.static Expression
Returns the hyperbolic cosine of a value that is measured in radians.static Expression
degreesToRadians
(Object value) Converts a value from degrees to radians.static Expression
radiansToDegrees
(Object value) Converts a value from radians to degrees.static Expression
Returns the sine of a value that is measured in radians.static Expression
Returns the hyperbolic sine of a value that is measured in radians.static Expression
Returns the tangent of a value that is measured in radians.static Expression
Returns the hyperbolic tangent of a value that is measured in radians.
-
Method Details
-
acos
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
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
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
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
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
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
- Since server release
- 4.2
- MongoDB documentation
- Aggregration Expression: $atan2
-
atanh
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
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
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
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
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
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
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
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
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
-