Vector 2 Int

Two whole numbers, for sizes and positions in pixels or cells.

A Vector 2 Int holds two whole numbers, X and Y, usually a size or a position that is counted, such as the width and height of a texture in pixels or the number of cells in a grid. Each component works like an Int: type a value, or drag on it with the middle mouse button.

Each component can be connected on its own, and a number with decimals is rounded to the nearest whole number. A single number connected to the whole vector fills both components, and a larger vector fills X and Y and drops the rest.

See also Vector 2.

Keywords: xy, resolution, size, pixels, grid, vector