Find if a point is within a triangle: Difference between revisions

Content added Content deleted
(Added Algol 68)
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 (same as the last two Common Lisp test cases except with extra digits). The more accurate algorithm translated from the Wren sample does handle these 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 #