Calculate the area of a simple 2D polygon given its vertices.
var area =
points must consistent of
points that are either of the form:
x: Integery: Integer
points must also trace the edge of the polygon.
point should return to the origin.
false(default). If true fucntion returns the signed area of the polygon. It is helpful to determine the orientation of points in polygon. Area is positive if orientation is counter-clockwise and negative for clockwise.
Calculate the area of a 4x4 square whose bottom left corner sits at the origin of the grid (