de.bixilon.kotlinglm.gtx.gtx_OptimumPow.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-glm Show documentation
Show all versions of kotlin-glm Show documentation
Kotlin port of OpenGL Mathematics (GLM)
package de.bixilon.kotlinglm.gtx
interface gtx_OptimumPow {
/** Returns x raised to the power of 2.
* @see gtx_optimum_pow */
fun pow2(x: Float) = x * x
/** Returns x raised to the power of 3.
* @see gtx_optimum_pow */
fun pow3(x: Float) = x * x * x
/** Returns x raised to the power of 4.
* @see gtx_optimum_pow */
fun pow4(x: Float) = x * x * x * x
}