[orx-shapes] Fix refactor bug in hobbyCurve
This commit is contained in:
@@ -61,10 +61,10 @@ fun hobbyCurve(points: List<Vector2>, closed: Boolean = false, curl: Double = 0.
|
|||||||
}
|
}
|
||||||
if (!closed) gamma[n] = 0.0
|
if (!closed) gamma[n] = 0.0
|
||||||
|
|
||||||
val a = DoubleArray(n) { 0.0 }
|
val a = DoubleArray(m) { 0.0 }
|
||||||
val b = DoubleArray(n) { 0.0 }
|
val b = DoubleArray(m) { 0.0 }
|
||||||
val c = DoubleArray(n) { 0.0 }
|
val c = DoubleArray(m) { 0.0 }
|
||||||
val d = DoubleArray(n) { 0.0 }
|
val d = DoubleArray(m) { 0.0 }
|
||||||
|
|
||||||
for (i in (if (closed) 0 else 1) until n) {
|
for (i in (if (closed) 0 else 1) until n) {
|
||||||
val j = (i + 1).mod(m)
|
val j = (i + 1).mod(m)
|
||||||
|
|||||||
Reference in New Issue
Block a user