Code:
          _ _     _
3 points, a b and c:

of which you take two vectors:
_   _   _     _   _   _
d = a - b and e = a - c
                          _
and take the crossproduct f of them, which should be the normal
_   _   _
f = d X e