areaoftriangle

Calculates the area of the triangle for inputted points. Depending on input, function can return scalar, vector or matrix

Arguments

  1. p1(x)
  2. p1(y)
  3. p2(x)
  4. p2(y)
  5. p3(x)
  6. p3(y)

Output

Area of triangle

Examples

areaoftriangle