Skip to content

Lib.numbers.vec2.GridPosition

Thomas Mann edited this page Sep 5, 2025 · 3 revisions

GridPosition

in Lib.numbers.vec2


Converts an index to a grid raster position and sizes that can be used to draw a [Layer2d]. This can be helpful for procedural graphical designs. Please check the example below.


Input Parameters

Name (Relevancy & Type) Description
A (Vector2) -
RasterSize (Int2) -
Index (Int32Required) -

Outputs

Name Type
Position System.Numerics.Vector2
Size System.Numerics.Vector2

⚠ Everything else is automatically generated and will be overwritten regularly.

Clone this wiki locally