PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
Modulo.h
Go to the documentation of this file.
1
8
9#ifndef PBAT_COMMON_MODULO_H
10#define PBAT_COMMON_MODULO_H
11
12namespace pbat::common {
13
14auto Modulo(auto a, auto b)
15{
16 return (a % b + b) % b;
17}
18
19} // namespace pbat::common
20
21#endif // PBAT_COMMON_MODULO_H
Common functionality.
Definition ArgSort.h:20