Closed saket closed 4 years ago
We've got some axis solvers that accept both Ints and Floats but for others, converting floats manually is verbose:
XInt((name.width() * 0.3f).value.toInt())
This PR adds toInt() functions to make the conversion slightly nicer:
toInt()
(name.width() * 0.3f).toInt()
Simple test?
We've got some axis solvers that accept both Ints and Floats but for others, converting floats manually is verbose:
This PR adds
toInt()
functions to make the conversion slightly nicer: