add refactored message types to temp folder
This commit is contained in:
12
temp-squares/fcore/click-points.sml
Normal file
12
temp-squares/fcore/click-points.sml
Normal 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
|
||||
Reference in New Issue
Block a user