Skip to main content

Module pattern

Module pattern 

Source
Expand description

Deterministic pattern instance-position computation.

Computes the grid-cell or scatter-point offsets for a pattern’s motif instances, expressed relative to the pattern’s own bounds origin (i.e. (0, 0)-based within a bounds_w × bounds_h box). The caller adds the absolute bounds origin (bx, by) on top.

Both layout kinds are fully deterministic: fixed loop order, pure integer bit-mixing via super::hash::hash_unit. Same inputs → same Vec on every machine.

Structs§

PatternLayout
Parameters for a single pattern layout computation.

Functions§

pattern_positions
Compute deterministic instance offsets relative to the pattern bounds origin.