Function setRectPoints

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

    Parameters

    • x: number

      Left

    • y: number

      Bottom

    • width: number

      Width

    • height: number

      Height

    • 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