I’m still not sure either this is a bug or a feature.
val skewX:Float = Math.atan((-c / d).toDouble()).toFloat()
I understand why I need the conversion from Double to Float, but why is there a conversion from Float to Double needed? In the docs you’re mentioning that it is required with nullable types because of boxing/unboxing problems, but I can’t see why I had to create this monstrosity in my case.
edit: If that’s not clear (and it probably isn’t) c and d are Floats and atan() takes a Double.