Skip to content

Commit

Permalink
[core] simplify intersect-plane-sphere?
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 21, 2015
1 parent af3858f commit 7cfab94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom-core/src/intersect.org
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/tribox3.txt

#+BEGIN_SRC clojure :noweb-ref isec
(defn intersect-plane-sphere?
[n w p r] (let [r (+ r *eps*)] (m/in-range? (- r) r (+ (g/dot n p) w))))
[n w p r] (<= (m/abs (+ (g/dot n p) w)) r))
#+END_SRC

** Tetrahedron
Expand Down

0 comments on commit 7cfab94

Please sign in to comment.