Polygon

Module: engine.geometry
new game.Polygon(points)

Parameters:

  • points Array

Properties

points Array

List of points in polygon. Can be list of numbers or vectors.

Methods

close()

Close polygon.