Function buildRectPoints

  • Build rect points.

    Parameters

    • x: number

      Left

    • y: number

      Bottom

    • width: number

      Width

    • height: number

      Height

    • closed: boolean = false

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

    Returns Vec2[]

    Rect points