de.bixilon.kotlinglm.Constants.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
import kotlin.math.max
import kotlin.math.ulp
/**
* Created by GBarbieri on 14.12.2016.
*/
fun epsilon(a: Float, b: Float) = max(a.ulp, b.ulp)
fun epsilon(a: Double, b: Double) = max(a.ulp, b.ulp)