Skip to content

Commit 1bbfeef

Browse files
committed
vec1i div
1 parent b5ec1a2 commit 1bbfeef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/glm_/vec1/Vec1i.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ class Vec1i(x: Int) : Vec1t<Int>(x) {
123123
val size = length * Int.BYTES
124124
}
125125

126+
127+
fun div(b: Vec1i, res: Vec1i) = div(res, this, b.x)
128+
129+
126130
override fun equals(other: Any?) = other is Vec1i && this[0] == other[0]
127131
override fun hashCode() = x.hashCode()
128132
}

0 commit comments

Comments
 (0)