Function getCentroid

  • Finds the centroid of the polygon

    Parameters

    • points: Vec2[]

      List of points that make up the polygon

    Returns Point

    Returns the centroid of the polygon

Generated using TypeDoc