fix last visual bug with graph lines: we were calling 'Vector.sub' on the wrong vector (mixed up xClickPoints and yClickPoints), but now we are calling 'Vector.sub' on the correct vector

This commit is contained in:
2025-07-11 01:56:59 +01:00
parent f2b1fc9e95
commit 3897a109fb
2 changed files with 2 additions and 2 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -18,9 +18,9 @@ struct
val minusX = (curX - halfWidth - 1.0) / halfWidth
val plusX = (curX - halfWidth + 1.0) / halfWidth
val minY = Vector.sub (xClickPoints, 0)
val minY = Vector.sub (yClickPoints, 0)
val minY = (~(minY - halfHeight)) / halfHeight
val maxY = Vector.sub (xClickPoints, Vector.length xClickPoints - 1)
val maxY = Vector.sub (yClickPoints, Vector.length yClickPoints - 1)
val maxY = (~(maxY - halfHeight)) / halfHeight
val acc = Ndc.ltrbToVertex (minusX, maxY, plusX, minY) :: acc