Registry / Library

library · v0.1.1
Periodic Index
Wrap a signed pixel or lattice coordinate into a repeating axis of positive integer width.
Use Periodic Index
use vendor::periodic_index::periodic_index;
Run the example
nest demo periodic_index@0.1.1
blyxc native-run periodic_index-demo/main.blyx
Example source and expected output
use vendor::periodic_index::periodic_index;
fn main() {
println!(periodic_index(-1,8));
}
Expected output
7
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | be1e684a01 | 852898e4bd062bb2468bf6d9a35da9e7410f0d268fae7b3debd7d491e963b468 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | f703d20eeef00ae2a011075add2025884bc6fc639ab1aa51f0aa4798e3822984 |