Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / cos
Go to reference

cos

@JvmName("cosFloat") fun cos(x: Attribute<Float>): Attribute<Float>
fun cos(x: Attribute<Double>): Attribute<Double>

Same as cos, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling cos in the transformation function.

This is simply a convenience function.

See Also

kotlin.math.cos