File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 6262# =end
6363# @author https://github.com/SuperFola
6464(let recombine (fun (_f _g _h)
65- (fun (_x &_f &_g &_h)
66- (_f (_g _x) (_h _x)))))
67-
65+ (fun (_x &_f &_g &_h) (_f (_g _x) (_h _x)))))
Original file line number Diff line number Diff line change 136136
137137 (while (< _index (len _L)) {
138138 (if (or (nil? _output) (< (@ _L _index) _output))
139- (set _output (@ _L _index)))
139+ (set _output (@ _L _index)))
140140 (set _index (+ 1 _index)) })
141141 _output }))
142142
153153
154154 (while (< _index (len _L)) {
155155 (if (or (nil? _output) (> (@ _L _index) _output))
156- (set _output (@ _L _index)))
156+ (set _output (@ _L _index)))
157157 (set _index (+ 1 _index)) })
158158 _output }))
159159
Original file line number Diff line number Diff line change 379379# (print (clamp 6 0 10)) # 6
380380# =end
381381# @author https://github.com/SuperFola
382- (let clamp (fun (_x _min _max)
383- (max _min (min _x _max))))
382+ (let clamp (fun (_x _min _max) (max _min (min _x _max))))
384383
385384# @brief Linearly interpolate a value in [0; 1] between two bounds
386385# @param _x value to interpolate (must be between 0 and 1)
390389# (print (lerp 0.22 15 132)) # 40.74
391390# =end
392391# @author https://github.com/SuperFola
393- (let lerp (fun (_x _v0 _v1)
394- (+ (* (- 1 _x) _v0) (* _x _v1))))
392+ (let lerp (fun (_x _v0 _v1) (+ (* (- 1 _x) _v0) (* _x _v1))))
You can’t perform that action at this time.
0 commit comments