cos
The cosine of a value that is measured 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::sideB set (of(cos(Triangle::angleA) * of(Triangle::hypotenuse)))
}
Content copied to clipboard