We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7924df commit 5166decCopy full SHA for 5166dec
common/src/main/kotlin/com/lambda/util/math/MathUtils.kt
@@ -26,6 +26,8 @@ object MathUtils {
26
private const val PI_FLOAT = 3.141593f
27
28
inline val Int.sq: Int get() = this * this
29
+ inline val Float.sq: Float get() = this * this
30
+ inline val Double.sq: Double get() = this * this
31
32
fun Float.toRadian() = this / 180.0f * PI_FLOAT
33
fun Double.toRadian() = this / 180.0 * PI
0 commit comments