This Python module can calculate the area of any type of triangle.
|AB| = math.sqrt((x2 − x1) ** 2 + (y2 − y1) ** 2)
|BC| = math.sqrt((x3 − x2) ** 2 + (y3 − y2) ** 2)
|AC| = math.sqrt((x3 − x1) ** 2 + (y3 − y1) ** 2)
Half-perimeter p = (AB + BC + AC) / 2
Area = math.sqrt(p*(p-AB)(p-BC)(p-AC))