Class Polygon

A polygon which connects an array of points. Includes extra methods for math and utility.

Hierarchy

  • Polygon

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

points: Vector2[]

The points that the Polygon will connect.

Accessors

Methods

  • Scales the Polygon by a scale factor. Creates a new Polygon and does not modify the original Polygon.

    Parameters

    • f: number

    Returns Polygon

Generated using TypeDoc