rfw2d
    Preparing search index...

    Class Poly

    A polygon.

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

    Implements

    Index

    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