Added proper mod function.
This commit is contained in:
8
src/engine/util/math.h
Normal file
8
src/engine/util/math.h
Normal 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
|
Reference in New Issue
Block a user