File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import glm_.mat4x4.Mat4
44import unsigned.*
55import java.io.InputStream
66import java.math.BigInteger
7+ import kotlin.math.pow
78
89/* *
910 * Created by GBarbieri on 07.12.2016.
@@ -313,4 +314,6 @@ internal val Any.toShort: Short
313314 is Boolean -> this .s
314315 is String -> this .s
315316 else -> throw ArithmeticException (" incompatible type" )
316- }
317+ }
318+
319+ infix fun Int.pow (exponent : Int ) = f.pow(exponent).i
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ import kotlin.math.sqrt as _sqrt
2323
2424interface func_exponential {
2525
26- infix fun Int.pow (exponent : Int ) = f.pow(exponent).i
27-
2826 fun pow (base : Double , exponent : Double ) = base.pow(exponent)
2927 fun pow (base : Float , exponent : Float ) = base.pow(exponent)
3028
You can’t perform that action at this time.
0 commit comments