mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-05 00:07:25 +00:00
Add ZCG cpp domain classes
This commit is contained in:
11
src/ZoneCodeGeneratorNew/Utils/AlignmentUtils.h
Normal file
11
src/ZoneCodeGeneratorNew/Utils/AlignmentUtils.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
class AlignmentUtils
|
||||
{
|
||||
public:
|
||||
template<typename T>
|
||||
static T Align(T number, T alignmentValue)
|
||||
{
|
||||
return (number + (alignmentValue - 1)) / alignmentValue * alignmentValue;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user