Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class FunctionExtensions(val functions0: Map<String, Function0> = emptyMap(), val functions1: Map<String, Function1> = emptyMap(), val functions2: Map<String, Function2> = emptyMap(), val functions3: Map<String, Function3> = emptyMap(), val functions4: Map<String, Function4> = emptyMap(), val functions5: Map<String, Function5> = emptyMap())
Functions
Link copied to clipboard
fun compileExpression(expression: String, constants: Map<String, Double> = emptyMap(), functions: FunctionExtensions = FunctionExtensions.EMPTY): () -> Double
Link copied to clipboard
Link copied to clipboard
fun compileFunction2(expression: String, parameter0: String, parameter1: String, constants: Map<String, Double> = mapOf(), functions: FunctionExtensions = FunctionExtensions.EMPTY, error: (p0: Double, p1: Double) -> Double = { _, _ -> 0.0 }): (p0: Double, p1: Double) -> Double
Compile a (Double, Double)->Double function from an expression string
Link copied to clipboard
fun compileFunction3(expression: String, parameter0: String, parameter1: String, parameter2: String, constants: Map<String, Double> = mapOf(), functions: FunctionExtensions = FunctionExtensions.EMPTY, error: (p0: Double, p1: Double, p2: Double) -> Double = { _, _, _ -> 0.0 }): (p0: Double, p1: Double, p2: Double) -> Double
Compile a (Double, Double, Double)->Double function from an expression string
Link copied to clipboard
fun evaluateExpression(expression: String, constants: Map<String, Double> = emptyMap(), functions: FunctionExtensions = FunctionExtensions.EMPTY): Double?
Link copied to clipboard
fun watchingExpression1(expressionProperty: KProperty0<String>, parameter0: String = "x", constants: Map<String, Double> = emptyMap(), functions: FunctionExtensions = FunctionExtensions.EMPTY, error: (p0: Double) -> Double = { 0.0 }): PropertyWatcherDelegate<String, (Double) -> Double>
Link copied to clipboard
fun watchingExpression2(expressionProperty: KProperty0<String>, parameter0: String = "x", parameter1: String = "y", constants: Map<String, Double> = emptyMap(), functions: FunctionExtensions = FunctionExtensions.EMPTY, error: (p0: Double, p1: Double) -> Double = { _, _ -> 0.0 }): PropertyWatcherDelegate<String, (p0: Double, p1: Double) -> Double>
Link copied to clipboard
fun watchingExpression3(expressionProperty: KProperty0<String>, parameter0: String = "x", parameter1: String = "y", parameter2: String = "z", constants: Map<String, Double> = emptyMap(), functions: FunctionExtensions = FunctionExtensions.EMPTY, error: (p0: Double, p1: Double, p2: Double) -> Double = { _, _, _ -> 0.0 }): PropertyWatcherDelegate<String, (p0: Double, p1: Double, p2: Double) -> Double>