Rounds a number or point to the nearest position on an imaginary grid.
Value— The number or point to round.
Spacing— The spacing between numbers or points on the grid.
Center— A corner point in the grid.
This node is useful for rounding or quantizing values so that they appear to snap to a grid of evenly spaced values. For example:
Spacingis 0.1 and
Centeris 0, then the snapped value will be a multiple of 0.1, such as 0, 0.1, -0.1, 0.2, or 1.3.
Spacingis (10,10) and
Centeris (5,5), then the snapped value will be a point such as (5,5), (15,5), (-5,15), or (105,105).
Keywords: approximate, close, discrete, grid, integer, nearby, preset, quantize, round