MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • TrigonometryValueOperators • atan
atan¶
The inverse tangent (arc tangent) of a value, in radians.
If the value is null
or NaN
, it is returned unchanged.
Example¶
class Triangle(
val name: String,
val sideA: Double,
val sideB: Double,
val hypotenuse: Double,
val angleA: Double,
)
collection.aggregate()
.set {
Triangle::angleA set atan(of(Triangle::sideB) / of(Triangle::sideA))
}