• Calculate the area of a polygon

    Parameters

    • p: Diagram

      a polygon Diagram if p is a Diagram with children, calculate the sum of the areas of the children

    Returns number

    area of the polygon