Files
test2/source/blender/blenlib/intern
Sybren A. Stüvel 88f536dc02 Add always-positive modulo function
Add modulo function `mod_f_positive(f, n)` that returns a positive result,
regardless of the sign of `f`.

For example, `mod_f_positive(-0.1, 1.0)` returns `0.9`, whereas the
standard `fmodf()` function would return `-0.1`.

This is useful for rewrapping values to a specific interval.
2023-05-16 11:41:17 +02:00
..
2022-10-07 22:55:03 +11:00
2023-02-03 12:41:01 +11:00
2023-02-11 14:04:35 +11:00
2022-02-11 09:14:36 +11:00
2022-11-08 15:50:49 +01:00
2022-02-11 09:14:36 +11:00
2022-10-07 22:55:03 +11:00
2022-10-07 22:55:03 +11:00
2023-03-09 18:15:22 +01:00
2022-10-07 22:55:03 +11:00
2022-02-11 09:14:36 +11:00