PasteRack.org | ||
Paste # 3411 | ||
2019-06-22 20:03:47 | ||
Fork as a new paste. | ||
Paste viewed 146 times. | ||
Tweet | ||
Embed: | ||
#lang scribble/manual This is a 3-argument curried function. @defproc[(((lerp [lo number?]) [hi number?]) [alpha number?]) number?]{ Linear interpolation} This is a 4-argument curried function. @defproc[((((distance [x1 number?]) [y1 number?]) [x2 number?]) [y2 number?]) number?]{ Euclidean distance from (x1,y1) to (x2,y2)}