write -INFINITY
sexc reads a dash before a name as negation now (sex#63). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -481,8 +481,7 @@
|
||||
(var n int (. p config zones-in-region))
|
||||
(var best-x int x)
|
||||
(var best-z int z)
|
||||
;; TODO sex#63: write -INFINITY once it reads as a negation.
|
||||
(var best double (- INFINITY))
|
||||
(var best double -INFINITY)
|
||||
(var found bool false)
|
||||
(for (var dx int -1) (<= dx 1) (++ dx)
|
||||
(for (var dz int -1) (<= dz 1) (++ dz)
|
||||
|
||||
@@ -283,8 +283,7 @@
|
||||
;;; *tanh* curve. GenTerra turns its threshold into a noise value with
|
||||
;;; this one, though the column bounds use the new noise's own curve.
|
||||
(fn tanh-curve-inverse ((v double)) double
|
||||
;; TODO sex#63: write -INFINITY once it reads as a negation.
|
||||
(if (<= v 0.0) (return (- INFINITY)))
|
||||
(if (<= v 0.0) (return -INFINITY))
|
||||
(if (>= v 1.0) (return INFINITY))
|
||||
(return (* 0.5 (log (/ v (- 1.0 v))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user