Class Poly

A polygon.

Can be converted into a mesh with buildTriangulatedMesh or geometry with triangulate.

Implements

Constructors

Properties

points: Vec2[]

Methods

  • Only check if the poly contains the point. Unlike containsPoint, does not do a bounding box check.

    Parameters

    Returns boolean

    true if this shape contains the point