Find if a point is within a triangle: Difference between revisions
Content added Content deleted
(Added Algol 68) |
(→{{header|ALGOL 68}}: Fixed notes) |
||
Line 33: | Line 33: | ||
With additional material |
With additional material |
||
{{Trans|Wren}} |
{{Trans|Wren}} |
||
The Common Lisp algorithm (as translated to Algol 68) does not handle the additional Wren test cases |
The Common Lisp algorithm (at least, as translated to Algol 68) does not handle the additional Wren test cases. The more accurate algorithm translated from the Wren sample does handle these cases. |
||
<lang algol68>BEGIN # determine whether a point is within a triangle or not # |
<lang algol68>BEGIN # determine whether a point is within a triangle or not # |
||
# tolerance for the accurate test # |
# tolerance for the accurate test # |