Skip to content

Commit c7924df

Browse files
committed
Fixed integer division
1 parent cc7d9fd commit c7924df

File tree

1 file changed

+3
-3
lines changed
  • common/src/main/kotlin/com/lambda/util/math

1 file changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/util/math/Vectors.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ infix operator fun Vec3d.times(other: Int): Vec3d = multiply(other.toDouble())
8484

8585
infix operator fun Vec3d.div(other: Vec3d): Vec3d = multiply(1.0 / other.x, 1.0 / other.y, 1.0 / other.z)
8686
infix operator fun Vec3d.div(other: Vec3i): Vec3d = Vec3d(x / other.x, y / other.y, z / other.z)
87-
infix operator fun Vec3d.div(other: Double): Vec3d = times(1 / other)
88-
infix operator fun Vec3d.div(other: Float): Vec3d = times(1 / other)
89-
infix operator fun Vec3d.div(other: Int): Vec3d = times(1 / other)
87+
infix operator fun Vec3d.div(other: Double): Vec3d = times(1.0 / other)
88+
infix operator fun Vec3d.div(other: Float): Vec3d = times(1.0 / other)
89+
infix operator fun Vec3d.div(other: Int): Vec3d = times(1.0 / other)
9090

9191
/* Vec3i */
9292
val Vec3i.vec3d get() =

0 commit comments

Comments
 (0)