Skip to content

Commit

Permalink
- removed useless methods in Vec1ul
Browse files Browse the repository at this point in the history
- added unsigned annotation
  • Loading branch information
elect86 committed Mar 9, 2020
1 parent 78a1849 commit b77a701
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions glm/src/main/kotlin/glm_/primitive extensions.kt
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions glm/src/main/kotlin/glm_/vec1/Vec1ul.kt
Expand Up @@ -359,8 +359,6 @@ class Vec1ul(x: Ulong) : Vec1t<Ulong>(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)
Expand All @@ -374,8 +372,6 @@ class Vec1ul(x: Ulong) : Vec1t<Ulong>(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)
Expand Down

0 comments on commit b77a701

Please sign in to comment.