mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-02 23:17:26 +00:00
11 lines
213 B
C++
11 lines
213 B
C++
#pragma once
|
|
|
|
class AlignmentUtils
|
|
{
|
|
public:
|
|
template<typename T>
|
|
static T Align(T number, T alignmentValue)
|
|
{
|
|
return (number + (alignmentValue - 1)) / alignmentValue * alignmentValue;
|
|
}
|
|
}; |