Skip to content

Commit b77a701

Browse files
committed
- removed useless methods in Vec1ul
- added unsigned annotation
1 parent 78a1849 commit b77a701

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

glm/src/main/kotlin/glm_/primitive extensions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ val Float.mantissa: Float
241241

242242

243243
infix fun Double.compare(other: Double): Int = java.lang.Double.compare(this, other)
244+
@kotlin.ExperimentalUnsignedTypes
244245
fun Double.isEqual(other: Double, maxUlps: Int): Boolean = when {
245246
this == other -> true
246247
// Different signs means they do not match.

glm/src/main/kotlin/glm_/vec1/Vec1ul.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,6 @@ class Vec1ul(x: Ulong) : Vec1t<Ulong>(x) {
359359
infix fun andAssign(b: Ulong) = and(this, this, b)
360360
infix fun andAssign(b: Long) = and(this, this, b)
361361
infix fun andAssign(b: Vec1ul) = and(this, this, b.x)
362-
fun andAssign(bX: Ulong, bY: Ulong) = and(this, this, bX)
363-
fun andAssign(bX: Long, bY: Long) = and(this, this, bX)
364362

365363

366364
infix fun or(b: Ulong) = or(Vec1ul(), this, b)
@@ -374,8 +372,6 @@ class Vec1ul(x: Ulong) : Vec1t<Ulong>(x) {
374372
infix fun orAssign(b: Ulong) = or(this, this, b)
375373
infix fun orAssign(b: Long) = or(this, this, b)
376374
infix fun orAssign(b: Vec1ul) = or(this, this, b.x)
377-
fun orAssign(bX: Ulong, bY: Ulong) = or(this, this, bX)
378-
fun orAssign(bX: Long, bY: Long) = or(this, this, bX)
379375

380376

381377
infix fun xor(b: Ulong) = xor(Vec1ul(), this, b)

0 commit comments

Comments
 (0)