Write a program to get the area of a quadrilateral. Points are given in anti clock wise direction starting from bottom left point.
Input (Point, Point, Point, Point) |
Output (double) |
[5, 2], [10, 2], [10, 5], [5, 5] |
15.0 |
[0, 0], [5, 0], [5, 5], [0, 5] |
25.0 |
[5, 2], [9, 2], [9, 4], [7, 4] |
6.0 |
[2, 1], [8, 1], [9, 8], [6, 6] |
24.5 |
[-8, 1], [-5, 1], [-4, 4], [-7, 4] |
9.0 |