Find if a point is within a triangle: Difference between revisions
Find if a point is within a triangle (view source)
Revision as of 20:17, 17 September 2021
, 2 years agoCommon Lisp
m (Common Lisp) |
|||
Line 276:
(defun point-inside-or-on-triangle (P A B C)
"Is the point P inside the triangle formed by ABC or on one of the sides?"
(apply #'= (remove
|