2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-02 23:17:26 +00:00
Files
OpenAssetTools/src/ZoneCodeGeneratorNew/Utils/AlignmentUtils.h
2021-02-07 23:31:45 +01:00

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;
}
};