sin
The sine 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 (sin(of(Trigonometry::angleA)) * of(Trigonometry::hypotenuse))
}
Content copied to clipboard