main.cesium.CubicRealPolynomial.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:JsModule("cesium")
package cesium
/**
* Defines functions for 3rd order polynomial functions of one variable with only real coefficients.
* @see Online Documentation
*/
external object CubicRealPolynomial {
/**
* Provides the discriminant of the cubic equation from the supplied coefficients.
* @param [a] The coefficient of the 3rd order monomial.
* @param [b] The coefficient of the 2nd order monomial.
* @param [c] The coefficient of the 1st order monomial.
* @param [d] The coefficient of the 0th order monomial.
* @return The value of the discriminant.
* @see Online Documentation
*/
fun computeDiscriminant(
a: Double,
b: Double,
c: Double,
d: Double,
): Double
/**
* Provides the real valued roots of the cubic polynomial with the provided coefficients.
* @param [a] The coefficient of the 3rd order monomial.
* @param [b] The coefficient of the 2nd order monomial.
* @param [c] The coefficient of the 1st order monomial.
* @param [d] The coefficient of the 0th order monomial.
* @return The real valued roots.
* @see Online Documentation
*/
fun computeRealRoots(
a: Double,
b: Double,
c: Double,
d: Double,
): Array
}