diff --git a/glm/src/main/kotlin/glm_/primitive extensions.kt b/glm/src/main/kotlin/glm_/primitive extensions.kt index 46baeda9..7b881fb4 100644 --- a/glm/src/main/kotlin/glm_/primitive extensions.kt +++ b/glm/src/main/kotlin/glm_/primitive extensions.kt @@ -241,6 +241,7 @@ val Float.mantissa: Float infix fun Double.compare(other: Double): Int = java.lang.Double.compare(this, other) +@kotlin.ExperimentalUnsignedTypes fun Double.isEqual(other: Double, maxUlps: Int): Boolean = when { this == other -> true // Different signs means they do not match. diff --git a/glm/src/main/kotlin/glm_/vec1/Vec1ul.kt b/glm/src/main/kotlin/glm_/vec1/Vec1ul.kt index a4a9bc73..2088743c 100644 --- a/glm/src/main/kotlin/glm_/vec1/Vec1ul.kt +++ b/glm/src/main/kotlin/glm_/vec1/Vec1ul.kt @@ -359,8 +359,6 @@ class Vec1ul(x: Ulong) : Vec1t(x) { infix fun andAssign(b: Ulong) = and(this, this, b) infix fun andAssign(b: Long) = and(this, this, b) infix fun andAssign(b: Vec1ul) = and(this, this, b.x) - fun andAssign(bX: Ulong, bY: Ulong) = and(this, this, bX) - fun andAssign(bX: Long, bY: Long) = and(this, this, bX) infix fun or(b: Ulong) = or(Vec1ul(), this, b) @@ -374,8 +372,6 @@ class Vec1ul(x: Ulong) : Vec1t(x) { infix fun orAssign(b: Ulong) = or(this, this, b) infix fun orAssign(b: Long) = or(this, this, b) infix fun orAssign(b: Vec1ul) = or(this, this, b.x) - fun orAssign(bX: Ulong, bY: Ulong) = or(this, this, bX) - fun orAssign(bX: Long, bY: Long) = or(this, this, bX) infix fun xor(b: Ulong) = xor(Vec1ul(), this, b)