Skip to content

lib.math.vec2.GridPosition

Thomas Mann edited this page Jan 17, 2024 · 4 revisions

GridPosition

in lib.math.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

Please help use to improve this documentation. Feel free to improve the description.

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

Clone this wiki locally