Added proper mod function.

This commit is contained in:
2021-04-03 15:28:48 +11:00
parent 93565a9905
commit 9f5fa7722a
4 changed files with 13 additions and 4 deletions

8
src/engine/util/math.h Normal file
View File

@ -0,0 +1,8 @@
// Copyright (c) 2021 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#define mod(a,b) (a%b+b)%b