Will generate performance problems using functions of this style?:
*fun sqrt(x: Float) = Math.sqrt(x.toDouble()).toFloat()*
*fun cos(angle: Float) = Math.cos(angle.toDouble()).toFloat()*
*fun sin(angle: Float) = Math.sin(angle.toDouble()).toFloat()*
for using it so with Floats:
*sqrt(45.0f)*
*cos(1.58f)*
*sin(0.28f)*
instead of the much more verbose:
*Math.sqrt(45.0f.toDouble()).toFloat()*
*Math.cos(1.58f.toDouble()).toFloat()*
*Math.sin(0.28f.toDouble()).toFloat()*
Greetings and thanks in advance