begin refactoring to use square pixels instead of triangles, focusing on functional core first

This commit is contained in:
2025-07-06 01:38:02 +01:00
parent 513cbd3dba
commit 79be94bcbd
8 changed files with 848 additions and 122 deletions

View File

@@ -0,0 +1,12 @@
structure ClickPoints =
struct
fun generate (start, finish, numPoints) =
let
val difference = finish - start
val increment = Real32.fromInt difference / Real32.fromInt numPoints
val start = Real32.fromInt start
in
Vector.tabulate (numPoints + 1, fn idx =>
(Real32.fromInt idx * increment) + start)
end
end