• Preparing search index...
  • The search index is not available
Foundry Virtual Tabletop - API Documentation - Version 12
  • Foundry Virtual Tabletop - API Documentation - Version 12
  • foundry
  • utils
  • polygonCentroid

Function polygonCentroid

  • polygonCentroid(points): Point
  • Calculate the centroid non-self-intersecting closed polygon. See https://en.wikipedia.org/wiki/Centroid#Of_a_polygon.

    Parameters

    • points: number[] | Point[]

      The points of the polygon

    Returns Point

    The centroid of the polygon

Settings

Member Visibility

Theme

Foundry Virtual Tabletop - API Documentation - Version 12
  • Loading...