(explain-triangle data)Returns detailed explanation if data is not a valid triangle
Returns detailed explanation if data is not a valid triangle
(molp= [x1 y1] [x2 y2])more or less equal points
more or less equal points
(random-angles range random)Generate a stream of random angles within a specified range. range: maximum angle deviation (e.g., 0.1 for small turns, 0.5 for larger turns) random: RandomGenerator instance
Generate a stream of random angles within a specified range. range: maximum angle deviation (e.g., 0.1 for small turns, 0.5 for larger turns) random: RandomGenerator instance
(randomAngle this seed)(randomFloat this)(randomInt this n)(randomNth this coll)(tx o1 o2 t1 t2 x)transform a scalar from one space to another. o1 is origin min, o2 is origin max, t1 is target min, t2 is target max
transform a scalar from one space to another. o1 is origin min, o2 is origin max, t1 is target min, t2 is target max
(validate-triangle data)Validates if data is a valid triangle
Validates if data is a valid triangle
(wobble-point [qx qy] [x y] & {:keys [random] :or {random default-random}})add some noise to a point, qx and qy are the x and y ranges of noise
add some noise to a point, qx and qy are the x and y ranges of noise
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |