Skip to content

Commit f7bd2eb

Browse files
committed
[orx-shapes] Clean-up deprecation warnings in RamerDouglasPeucker.kt
1 parent 57f2223 commit f7bd2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orx-shapes/src/commonMain/kotlin/simplify/RamerDouglasPeucker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fun simplify(points: List<Vector2>, epsilon: Double): List<Vector2> {
2424
var index = 0
2525
val end = points.size
2626
for (i in 1..(end - 2)) {
27-
val ls = LineSegment(points[0], points[endIndex]).extend(1000000.0)
27+
val ls = LineSegment(points[0], points[endIndex]).extendTo(1E6)
2828
val d = ls.distance(points[i])
2929
if (d > dMax) {
3030
index = i

0 commit comments

Comments
 (0)