rfw2d
    Preparing search index...

    Function setPointsFromRect

    • Build rect points. Reuse points in results if already present.

      Parameters

      • rect: RectLike

        Rect

      • closed: boolean

        Generate an additional point closing the rect (equal to first point)

      • results: Vec2[]

        Array of points to reuse

      • Optionaloptions: EnsurePointsOptions

        Options describing how to reuse results

      Returns number

      Number of points added/changed