It looks like you can cut out those pesky constants, too:FUNCTION insideTriangle (x1, y1, x2, y2, x3, y3, px, py)
area& = triangleArea2(x1, y1, x2, y2, px, py) + triangleArea2(x1, y1, px, py, x3, y3) + triangleArea2(px, py, x2, y2, x3, y3)
insideTriangle = area& <= triangleArea2(x1, y1, x2, y2, x3, y3)
END FUNCTION
FUNCTION triangleArea2& (x1, y1, x2, y2, x3, y3)
triangleArea2& = ABS(x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2))
END FUNCTION