Replace mod_() calls with mod()

This commit is contained in:
Edwin Jakobs
2023-04-29 13:51:06 +02:00
parent 175200abdb
commit ccd7a98b12
14 changed files with 17 additions and 17 deletions

View File

@@ -38,4 +38,4 @@ fun ShapeContour.bulgeSegments(distortion: Double) =
bulgeSegments { _, _ -> distortion }
fun ShapeContour.bulgeSegments(distortion: List<Double>) =
bulgeSegments { index, _ -> distortion[index.mod_(distortion.size)] }
bulgeSegments { index, _ -> distortion[index.mod(distortion.size)] }

View File

@@ -163,7 +163,7 @@ fun ShapeContour.arcCorners(lengths: List<Double>,
private class Ring<T>(private val x: List<T>) : List<T> by x {
override operator fun get(index: Int): T {
return x[index.mod_(x.size)]
return x[index.mod(x.size)]
}
}